React Native Boilerplate is a starting point for React Native application. This project is configured with redux, redux saga.
This Type based Architecture scales smoothly for small - medium apps.
- Redux
- Redux Saga
- React Navigation (will configure soon)
- Jest
- Eslint (Airbnb config)
- Node v8.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,
https://github.com/Sajid-Ali/react-native-boilerplate.git <your project name> -
Go to project's root directory,
cd <your project name> -
Remove
.gitfolder,rm -rf .git -
Run
yarnornpm installto install dependencies -
Run
react-native upgradeto upgrade and add iOS & Android Folders. -
Run
react-native link -
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!!!
PRs are welcome