Skip to content

Instantly share code, notes, and snippets.

@Jahans3
Last active July 6, 2017 15:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jahans3/7f3946dfbcb802879e5f4bade3bd1ed1 to your computer and use it in GitHub Desktop.
Save Jahans3/7f3946dfbcb802879e5f4bade3bd1ed1 to your computer and use it in GitHub Desktop.
class MyContainer extends Component {
state = {
itemA: 'something',
itemB: 'another thing'
}
_onPress = () => {
// ...
}
_onPinch = () => {
// ...
}
render () {
return (
<MyComponent
propA={this.props.propA}
propB={this.props.propB}
itemA={this.state.itemA}
itemB={this.state.itemB}
onPress={this._onPress}
onPinch={this._onPinch}
/>
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment