React-native-router-flux: Disable "swipe to go back" for modal

Created on 8 Jun 2016  路  5Comments  路  Source: aksonov/react-native-router-flux

Version

  • react-native-router-flux v3.26.1
  • react-native v0.26.0

Is there a way to disable "swipe to go back" for modals?
In the app I'm currently working on we open a WebView in a modal and when trying to scroll up in the WebView the modal captures the gesture and starts the back-animation. Like this:

Most helpful comment

Have you tried panHandlers={null} on the Scene?

All 5 comments

Have you tried panHandlers={null} on the Scene?

@cridenour Thank you! 馃憤

@cridenour Thank you

Have you tried panHandlers={null} on the Scene?

@cridenour, yes that helps but is there a way to programmatically enable/disable it dependent on the modal visibility. i.e. keep panHandlers when modal is closed and set panHandlers to null when modal is open?

Was this page helpful?
0 / 5 - 0 ratings