Painless react-native project setup, with redux and unit tests already set up and ready to run.
Adds support for:
- Redux and Redux-Thunk application state management.
- Enzyme and and jsdom for deep rendering of Components directly in tests.
- Example tests of the above.
First, install Yeoman and generator-react-native-testable
using npm (we assume you have pre-installed node.js).
npm install -g yo generator-react-native-testable
Then generate your new project:
yo react-native-testable --force
cd YourProjectName
npm install
That's all! After you cd
into the project directory you can npm test
to run unit tests, or react-native run-android
or react-native run-ios
to run the project.
- Yeoman has a heart of gold.
- Yeoman is a person with feelings and opinions, but is very easy to work with.
- Yeoman can be too opinionated at times but is easily convinced not to be.
- Feel free to learn more about Yeoman.
Apache-2.0 © Connected Lab