React Native Boilerplate is a starting point for React Native application. This project is configured with redux, redux saga and redux persist. Latest version of react-navigation (v2.0.1) included with redux-navigation support .
- Node v6.10 (it is recommended to install it via NVM)
- Yarn
- A development machine set up for React Native by following these instructions
-
Clone this repo,
git clone https://github.com/victorkvarghese/react-native-boilerplate.git <your project name> -
Go to project's root directory,
cd <your project name> -
Remove
.gitfolder,rm -rf .git -
Open
package.jsonand change thenameproperty with your project name -
Run
yarnornpm installto install dependencies -
Remove android contents
rm -rf /android/* -
Remove ios contents
rm -rf /ios/* -
Run
react-native upgradeto update the project name toandroidandiosbuild- Type
yto each prompt
- Type
-
Run
react-native link -
Open
index.jsand replace'ReactNativeBoilerPlate'by your project name -
Start the packager with
npm start -
Connect a mobile device to your development machine
-
Run the test application:
- On Android:
- Run
react-native run-android
- Run
- On iOS:
- Open
ios/YourReacTproject.xcodeprojin Xcode - Hit
Runafter selecting the desired device
- Open
- Enjoy!!!
Never commit directly on master, instead use branches and pull requests.
Initial Realease : 0.55.4
Maintained By: Victor