react-native-modalize
react-native-modalize copied to clipboard
Swiping back/go back closes the modal
Some android devices have swipe back functionality such as Samsung S series. You can go back by swiping the screen from right to left. When I do that it closes the modal first instead of going back to the previous screen, then the next swipe it goes back. For some reason device saves model opening as a navigation step and the first thing it does on swipe is to close it.
Reproduce
- You can see the issue here
- https://imgur.com/Fl3503e
Dependencies:
- react-native-modalize [e.g. 1.3.7-rc.19]
- react-native [e.g. 0.62.0]
- react-native-gesture-handler [e.g. 1.6.0]
- expo/react-navigation/react-native-navigation: [e.g. [email protected]]
Try adding onBackButtonPress={() => false}
to the <Modalize ...