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