jeremybarbet / react-native-modalize

A highly customizable modal/bottom sheet that loves scrolling content.
https://jeremybarbet.github.io/react-native-modalize
MIT License
2.84k stars 298 forks source link

Swiping back/go back closes the modal #376

Open borasumer opened 2 years ago

borasumer commented 2 years ago

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

Dependencies:

peterchibunna commented 2 years ago

Try adding onBackButtonPress={() => false} to the <Modalize ...