Skip to content

Instantly share code, notes, and snippets.

@dabit3
Last active June 18, 2016 05:43
Show Gist options
  • Save dabit3/39154d59ab755672e3cefaba82a6a76e to your computer and use it in GitHub Desktop.
Save dabit3/39154d59ab755672e3cefaba82a6a76e to your computer and use it in GitHub Desktop.
React Native Navigator Experimental Part 3 - tabsRootContainer.js 2
import { connect } from 'react-redux'
import TabsRoot from '../components/TabsRoot'
function mapStateToProps (state) {
return {
tabs: state.tabReducer
}
}
function mapDispatchToProps (dispatch) {
return {
dispatch
}
}
export default connect(
mapStateToProps,
mapDispatchToProps
)(TabsRoot)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment