Getting Started
Welcome! A good place to start with any React Native project is the dependency manager. It keeps your React Native dependencies up-to-date and healthy using automation which ties into your developer workflows.
This guide gets you off and running with the dependency manager. To begin, choose a package that uses React Native and open a terminal window.
Start by adding the dependency manager to your package.
yarn add @rnx-kit/align-deps --devpnpm add -D @rnx-kit/align-depsnpm add --save-dev @rnx-kit/align-depsNext, generate the dependency manager configuration for your package. If your
package produces a bundle, it’s an app. Otherwise, it’s a library.
yarn rnx-align-deps --init appyarn rnx-align-deps --init librarypnpm rnx-align-deps --init apppnpm rnx-align-deps --init librarynpx rnx-align-deps --init appnpx rnx-align-deps --init libraryFix any React Native package versions that might have compatibility issues.
yarn rnx-align-deps --writepnpm rnx-align-deps --writenpx rnx-align-deps --writeReview the changes. They should be limited to package.json and your Yarn / npm / pnpm lock file.
Congratulations! You can now automatically maintain your package as the React Native ecosystem grows and changes. Take a look at the dependency management guide to learn how.