dancormier / react-native-swipeout

iOS-style swipeout buttons behind component
MIT License
2.62k stars 646 forks source link

cannot access state #293

Closed miaoanbang closed 6 years ago

miaoanbang commented 6 years ago

` <Swipeout onOpen={() => console.log(this.state)} onClose={() => console.log(this.state)} right={[ { text: 'Delete', backgroundColor: 'red', onPress: () => { console.log(this.state); }, } ]}

`

I am unable to access my state using this way. I am unable to change state by click the button.

Any ideas or suggestions how I can access and trigger setState by clicking the button?

empiteranga commented 5 years ago

how do you do that, the same issue