Clone this repository to start a project based on
"react-native": "0.51.1",
"react": "^16.3.0-alpha.1",
"react-native-navigation": "^2.0.0",
"react-native-ui-lib": "^3.3.32"
Check react-native-navigation
's documentation for usage details.
Download npm dependencies:
npm i -g react-native-cli
npm install
If you would like to rename the project you can use React Native Rename
After running React Native Rename, in order to run the project successfully, you will need to manually update your app name in src/screens.js
, where <appname>
is the name of your app.
- Navigation.registerComponent('reactNativeInit.App', () => App);
+ Navigation.registerComponent('<appname>.App', () => App);
From project dir, run:
-
Run the packager
npm run start
-
Open the project in xcode from
ios/reactNativeInit.xcodeproj
-
Build and run from Xcode
-
Start an emulator
-
Build and run
react-native run-android
This would also start a packager if not already started
-
Set your Emulator to live reload changes
⌘
+m
(cmd
+m
) =>Enable Hot Reloading
To open packager manually, from project dir run:
react-native start