This is a example repo for showing how to use Redux with React Native. Everything that is important to understanding the redux setup / flow can be found in the app
directory. This example makes a simple API call to the Dark Sky Api to display today's weather. Here is an article explaining the non redux way of doing something and comparing it to a redux version that is similar to the setup in this repo. Also check out the Redux docs. Enjoy and feel free to contact me with any questions :).
Please follow Installing Dependencies
section found here
Also follow the rest of the setup for both ios and android in order to have your environment ready to run the native app on a device or xcode / android avd
$ git clone git@github.com:jarretmoses/react-native-redux-example.git
$ cd react-native-redux-example
$ yarn
// For IOS
react-native run-ios
// For Android
react-native run-android
- Go to http://localhost:3000/
- Page should auto-reload on code changes (due to HMR)
Brought to you by Jarret Moses