Usage
Without Installation
Run the tool directly using npx
:
npx react-native-integrate <package-name>
Example:
- npm
- Yarn
- pnpm
- Bun
# First install the package
npm install @react-native-firebase/app
# First install the package
yarn add @react-native-firebase/app
# First install the package
pnpm add @react-native-firebase/app
# First install the package
bun add @react-native-firebase/app
- npm
- Yarn
- pnpm
- Bun
# Integrate the package
npx react-native-integrate@latest @react-native-firebase/app
# Integrate the package
yarn dlx react-native-integrate@latest @react-native-firebase/app
# Integrate the package
pnpm dlx react-native-integrate@latest @react-native-firebase/app
# Integrate the package
bun x react-native-integrate@latest @react-native-firebase/app
With Global Installation
Install the tool globally for easier access:
- npm
- Yarn
- pnpm
- Bun
npm install react-native-integrate@latest -g
yarn global add react-native-integrate@latest
pnpm add react-native-integrate@latest -g
bun add react-native-integrate@latest --global
Then use the rni
command to integrate packages:
# To integrate multiple newly installed packages
rni
# To integrate a specific package
rni @react-native-firebase/app
Benefits
- Simplifies the process of integrating third-party packages.
- Automates native code modifications, reducing manual effort.
- Provides a consistent way to handle integrations across projects.