diff --git a/releases/next/docs/integration-with-existing-apps.html b/releases/next/docs/integration-with-existing-apps.html index 48b399f8335..de7a9cc3231 100644 --- a/releases/next/docs/integration-with-existing-apps.html +++ b/releases/next/docs/integration-with-existing-apps.html @@ -97,7 +97,7 @@ "scripts": { "start": "node node_modules/react-native/local-cli/cli.js start" } -}
Next, you will install the react and react-native packages. Open a terminal or command prompt, then navigate to the root directory for your project and type the following commands:
This will create a new /node_modules folder in your project's root directory. This folder stores all the JavaScript dependencies required to build your project.
Next, you will install the react and react-native packages. Open a terminal or command prompt, then navigate to the root directory for your project and type the following commands:
Make sure you use the same React version as specified in the React Native package.json for your release. This will only be necessary as long as React Native depends on a pre-release version of React.
This will create a new /node_modules folder in your project's root directory. This folder stores all the JavaScript dependencies required to build your project.
CocoaPods is a package management tool for iOS and macOS development. We use it to add the actual React Native framework code locally into your current project.
We recommend installing CocoaPods using Homebrew.
It is technically possible not to use CocoaPods, but that would require manual library and linker additions that would overly complicate this process.
Add the React Native dependency to your app's build.gradle file:
If you want to ensure that you are always using a specific React Native version in your native build, replace
+with an actual React Native version you've downloaded fromnpm.
Add an entry for the local React Native maven directory to build.gradle. Be sure to add it to the "allprojects" block:
We also need to pass back button events to React Native: