Daniel Zlotin 60cca6908b Merge branch 'master' of https://github.com/wix/react-native-navigation | il y a 8 ans | |
---|---|---|
.. | ||
android | il y a 8 ans | |
img | il y a 8 ans | |
ios | il y a 8 ans | |
src | il y a 8 ans | |
.buckconfig | il y a 8 ans | |
.flowconfig | il y a 8 ans | |
.gitignore | il y a 8 ans | |
.watchmanconfig | il y a 8 ans | |
README.md | il y a 8 ans | |
index.android.js | il y a 8 ans | |
index.ios.js | il y a 8 ans | |
package.json | il y a 8 ans |
A simple usage example for an app based on redux. If you’re not using redux, take a look at example (without redux). The non-redux example will also include more examples of pure navigation features since we don’t want to maintain two full examples. Make sure to look at it as well.
example-redux/
folder, run npm install
Make sure you’re using npm ver 3. If you normally use npm ver 2 on your system and reluctant to upgrade, you can install npm 3 alongside 2. For more details see https://github.com/wix/react-native-navigation/issues/1. In addition, redux also causes some issues with npm 2. If you have to use npm 2 on this project, fix those by running
npm run fix_npm2
in your project directory after runningnpm install
.
example-redux/ios/exampleRedux.xcodeproj
in Xcode and press the play buttonsrc/screens/
- all your app screens, every screen is a redux connected (“smart”) componentsrc/components/
- all react sub-components, they are not aware of redux (“dumb”) and get everything by propssrc/reducers/
- all of your redux goodness (reducts and their actions) goes here, all business logic should be here