Mac OSX system builds React natvie for android development environment, osxnatvie
1. Download node. js https://nodejs.org/en/ download OSX V5.6 2. Install android sdk jdk 3. Install react-native-cli open command line, enterNpm install-g react-native-cli Error:Missing write access to/usr/local/lib/node_modules/usr/local/lib add sudo command 4. InitializationReact-native init AwesomeProject requires FQ5. Start the React Native Server command line to enterAwesomeProjectDirectory, runReact-native startStart server6.AwesomeProject android Project Error: Can't find variable: _ fbBatchedBridge Got JS Exception: ReferenceError: Can't find variable: _ fbBatchedBridge Open the Permission Notification box. A red error occurs. How to solve the problem. Open http: // localhost: 8081/index. android. bundle? Platform = android is correct Input: adb reverse tcp: 8081 tcp: 8081 Or refer to the instructions on the official website:Http://facebook.github.io/react-native/docs/running-on-device-android.html then there will be a long-overdue welcome react native PAGE .. PS: the basic android sdk and jdk are not written. Install android studio.