Start your next react native project in seconds
Inspired by Max Stoiber's React Boiler Plate.
- Quick scaffolding
- Create components, containers, navigators, selectors and sagas - and their tests - right from the CLI!
- Instant feedback
- Enjoy the best DX (Developer eXperience) and code your app at the speed of thought! Your saved changes to the styles and JS are reflected instantaneously without refreshing the app. Preserve application state even when you update something in the underlying code!
- Predictable state management
- Unidirectional data flow allows for change logging and time travel debugging.
- Next generation JavaScript
- Use template strings, object destructuring, arrow functions, JSX syntax and more.
- Redux Integration
- Use template strings, object destructuring, arrow functions, JSX syntax and more.
- Redux Saga Integration
- Executing logic in an asynchronous way without ending in callback hell. Sagas are triggered by Redux actions and can also trigger Redux actions to alter state. By using JavaScript generators (`yield`), sagas are written in a synchronous-like manner while still executing asynchronously.
- Make sure that you have Node.js v8.10 and npm v5 or above installed.
- Follow the getting started guide
- Clone this repo using
git clone --depth=1 https://github.com/trixtateam/react-native-boiler-plate.git <YOUR_PROJECT_NAME>
- Move to the appropriate directory:
cd <YOUR_PROJECT_NAME>
. - Run
npm run install
in order to install dependencies and clean the git repo.
- only the first time you run the project, you need to generate a debug key with:
cd android/app
keytool -genkey -v -keystore debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000
cd ../..
to come back to the root folder
npm run start
to start the metro bundler, in a dedicated terminalnpm run android
to run the Android application (remember to start a simulator or connect an Android phone)
cd ios
pod install
to install pod dependenciescd ..
to come back to the root foldernpm run start
to start the metro bundler, in a dedicated terminalnpm run ios
to run the iOS application (remember to start a simulator or connect an iPhone phone)
Now you're ready to rumble!
- The Hitchhikers Guide to
react-native-boiler-plate
: An introduction for newcomers to this boilerplate. - Overview: A short overview of the included tools
- Commands: Getting the most out of this boilerplate
- Testing: How to work with the built-in test harness
- Your app: Supercharging your app with Navigation, Redux, simple asynchronicity helpers, etc.
- Troubleshooting: Solutions to common problems faced by developers.
This project is licensed under the MIT license, Copyright (c) 2019 Jacques
Nel. For more information see LICENSE.md
.