An example of React Native project with Backand Inetgartion and workflow based on react-native-cli
-
Install latest nodeJs https://nodejs.org/
-
Install React Native CLI(This is global Dependency). react-native-cli
npm install -g react-native-cli
Note : If you get an error like Cannot find module 'npmlog', try installing npm directly: curl -0 -L https://npmjs.org/install.sh | sudo sh.
Read more react-native-cli
- Clone Project
$ git clone https://github.com/backand/react-native-example.git
$ cd react-native-example
- Go to project folder and install dependencies:
npm install
-
Set up your emulator ios: https://facebook.github.io/react-native/docs/getting-started.html#xcode (install xcode)
android: https://facebook.github.io/react-native/docs/getting-started.html#4-set-up-your-android-virtual-device (install Android Studio and run avd) -
Launch app
$ react-native run-ios
$ react-native run-android
Error and Solutions -
- Unrecognized font family "FontAwesome"
npm install react-native-vector-icons --save react-native link react-native-vector-icons
- ENJOY! 😄