Super Simple React Native Redux Example

David Vassallo
Aug 29, 2017 · 1 min read

Super Simple React Native Redux Example

Original Publish Date: Tue, 29 Aug 2017 10:23:48 +0000


Inspired byhttp://blog.tylerbuchea.com/super-simple-react-redux-application-example/

In this article we explore the barest of solutions to get started with React Native + Redux. The only pre-requisite to the below is to have “create-react-native-app” installed (https://facebook.github.io/react-native/docs/getting-started.html)

Setup

create-react-native-app superSimple
cd superSimple
npm install --save redux react-redux

redux.js

App.js

Notes

  • In mostcreate-react-native-app + redux tutorials that I researched, most mentioned the use ofindex.android.js orindex.ios.js to connect Redux to the React App component. These files are not automatically created by create-react-native-app so I wanted to avoid introducing them.
  • The solution was to create a new “inner component” which I namedAppInner in lines 13–23 above. This component contains the JSX of the … Read more at David’s Blog
)
David Vassallo

Written by

https://blog.davidvassallo.me

David Vassallo's Blog Posts

If at first you don't succeed; call it version 1.0

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade