Thanks to visit codestin.com
Credit goes to github.com

Skip to content

jolyonruss/example-react-native-redux

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 

Repository files navigation

Example Project using React-Native 0.16 and Redux 3.0.4

This is a repo for starting a react-native app using Redux.

There are some issues which they need to be addressed in the future:

  • React-Native >= 0.16 use Babel 6 which doesn't support Decorator until T2645 lands in Babel. So for binding your connect use the old style.

instead of this:

@connect(state => ({
  state: state.counter
}))
class CounterApp extends Component {

}

export CounterApp;

use this:

class CounterApp extends Component {

}

export default connect(state => ({
  state: state.counter
}))(CounterApp);
  • Babel 6 doesn't like old .babelrc and you need to clean all .babelrc in your node_modules. I have provided a simple bash script to clean all .babelrc files.

once you install packages using npm install, make sure to run npm run clean to remove all .babelrc inside node_modules.

Cheers,

About

react native redux counter example

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 47.4%
  • JavaScript 30.9%
  • Java 21.7%