Skip to content

Instantly share code, notes, and snippets.

@Jahans3
Last active July 6, 2017 15:22
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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