React-native-tutorial(待续)
Support: Android 4.1 (API 16)+ IOS(8.0+)
How to use
Clone the repo and install the dependencies, and then npm start.
$ npm install -g react-native-cli
$ git clone https://github.com/allan2coder/React-native-tutorial.git
$ cd React-native-tutorial
$ npm install
Then run the following commands to create a new React Native project:
$ react-native run-android/ios
Start
$ npm start
Run Test
yarn(or npm) test
Format Code
npm run format
Run Lint
npm run lint
Now what?
Turn on Live Reload in the Developer Menu. Your app will now reload automatically whenever you save any changes!
If you can not run react-native run-android/ios
, try following command:
chmod +x android/gradlew