From e14389e1a0b10ec30aed0b34d82e4d69c80aa8e5 Mon Sep 17 00:00:00 2001
From: Website Deployment Script Next, you will install the This will create a new Next, you will install the 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 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.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:/node_modules folder in your project's root directory. This folder stores all the JavaScript dependencies required to build your project.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:/node_modules folder in your project's root directory. This folder stores all the JavaScript dependencies required to build your project.3. Install CocoaPods #
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: