Skip to content

husm/react-native-saga

Repository files navigation

React Native / Redux / Saga

This project is used to help the newbies to integrate react-native project with redux and redux-saga. If you do not know what are redux and redux-saga, please learn the basic concepts of them first, then back to this example again.

v0.1

Please use git checkout -b version0_1 v0.1 to get v0.1 release. In this version I accomplished a very simple example which contains an asynchronous increment button

v0.2

Please use git checkout -b version0_2 v0.2 to get v0.2 release. In this version I separate the counter component into two components, one is for counter and one is for api tester. I use axios to post the request to a public api server and get the response result.

  • react-native
  • react-redux
  • redux-saga
  • redux-logger
  • axios

Installation

Use yarn or npm to install the packages listed in Requirements section.

References

This example is based on anliz's Counter Example which gives me great help on how things are working in redux, and how to integrate redux with react-native. And wutonke's project is what I refers when studying redux-saga.

By using redux-saga official document, I integrate redux-saga into this sample project, and fulfill the asynchronous counter with react-redux/redux-saga.

Contribution

Any comment are welcome.