- First install node.js from https://nodejs.org/en/download/
- Install python 2.7+ from https://www.python.org/downloads/release/python-2715/
- Ensure JDK installed
- Create an environment variable: my Computer->Properties->Advanced System settings->Environment variable->new
- Set variable ANDROID_HOME and set your sdk path. Typically sdk found
c:\Users\YOUR_USERNAME\AppData\Local\Android\Sdk
- Now run command:
npm install -g react-native-cli
- After completing download run:
react-native init YourProjectName
- Then
cd YourProjectName
- After completing download or creation of project run:
react-native start (IT take time after complete goto step 10)
- Then open Virtual device or Connect Device via USB and run:
react-native run-android
-
mkdir android/app/src/main/assets (In your project)
-
react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
-
react-native run-android