demo-integrate-react-native
Introduction: Demo integrate React Native with existing Android and iOS native projects
Tags:
Description
Integrating react native with existing Android and iOS native projects.
How to run
- Clone this repository.
- At root directory run
npm installto install the dependencies.Android
- Open folder
androidby Android Studio and run the project as normal.iOS
- At root directory
cd ios/ && pod install - Go to
iosfolder and double clickDemoIntegrateRN.xcworkspaceto run the project.Run the packager
- To run react native part, you need to first start the development server. To do this, run the following command in the root directory
npm start - From the native app and clicking the button to navigate to react native part, it should load the JavaScript code from the development server and display react native screens.
