Closed ghost closed 9 years ago
The way you'd do this with Button is the same how you'd do it elsewhere in React by using thunks:
<Button onPress={() => { this.buttonPressed(/*whatever you want here*/) } />
<Button onPress={this.buttonPressed.bind(this, /*whatever you want here*/)} />
Would like to be able to pass an ID or argument to the button. For example if I do
I would like to be able to reference that "MyButton" was pressed allowing me to send to a single function when having multiple buttons on a screen.