Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jarretmoses/react-native-redux-example
Simple example on how to use Redux with React Native
https://github.com/jarretmoses/react-native-redux-example
react react-native redux
Last synced: 3 months ago
JSON representation
Simple example on how to use Redux with React Native
- Host: GitHub
- URL: https://github.com/jarretmoses/react-native-redux-example
- Owner: jarretmoses
- License: mit
- Created: 2017-02-25T17:52:13.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-12T17:16:05.000Z (almost 7 years ago)
- Last Synced: 2024-10-11T16:16:29.043Z (4 months ago)
- Topics: react, react-native, redux
- Language: JavaScript
- Size: 169 KB
- Stars: 82
- Watchers: 3
- Forks: 44
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
React Native Redux Example
======================================================## Description
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](https://medium.com/@stowball/a-dummys-guide-to-redux-and-thunk-in-react-d8904a7005d3#.bultwm53oa) 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](http://redux.js.org/) docs. Enjoy and feel free to contact me with any questions :).## Pre Installation
Please follow `Installing Dependencies` section found [here](https://facebook.github.io/react-native/docs/getting-started.html)
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## Installation
```
$ git clone [email protected]:jarretmoses/react-native-redux-example.git
$ cd react-native-redux-example
$ yarn
```## Development
```
// For IOS
react-native run-ios// For Android
react-native run-android
```
* Go to [http://localhost:3000/](http://localhost:3000/)
* Page should auto-reload on code changes (due to HMR)Brought to you by [Jarret Moses](https://jarretmos.es)