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 (3.11.0).
- 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/ileafsolutions/React-Native-CodeFormat.git <your project name>
- Go to project's root directory,
cd <your project name>
- Remove
.git
folder,rm -rf .git
- Open
package.json
and change thename
property with your project name - Run
yarn
ornpm install
to install dependencies - Remove android contents
rm -rf android
- Remove ios contents
rm -rf ios
- Open
app.json
and change thename
anddisplayName
property with your project name - Run
react-native eject
to update the project name toandroid
andios
- Run
react-native link
- Open
index.js
and 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.xcodeproj
in Xcode - Hit
Run
after selecting the desired device
- Open
- Enjoy!!!
Never commit directly on master, instead use branches and pull requests.