react-native-modalize icon indicating copy to clipboard operation
react-native-modalize copied to clipboard

Swiping back/go back closes the modal

Open borasumer opened this issue 2 years ago • 1 comments

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]]

borasumer avatar Dec 23 '21 13:12 borasumer

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

peterchibunna avatar Jan 14 '22 16:01 peterchibunna