react-native-action-sheet
react-native-action-sheet copied to clipboard
Are we able to provide a callback to the cancel button?
Since we do not define the action of the cancel button, is there any way we can supply a callback action to fire when the cancel button is pressed?
Thank you
@youngrichard what is the use case? It could be helpful when thinking of possible implementation. Thanks.
Our use case involves tracking user interactions, which we can do for the other buttons, but not cancel.
https://github.com/expo/react-native-action-sheet/blob/master/src/ActionSheet/index.tsx#L241-L242
I think this results in the onPress being called with the cancelIndex... is that not what you're seeing?