reactjs - React Native: How to disable navigator sceneconfig gestures on the fly? -


i know it's possible disable scene gesture when pushing scene sceneconfig gestures null so:

return {   ...customnavigatorsceneconfigs.floatfrombottom,   gestures: {} }; 

but i'd temporarily disable gesture when view pushed.

i have lightbox/image modal zoom support. when image zoomed-in need disable swipe gesture otherwise activate when user panning image. default , zoomed-out want gesture work.

is possible disable sceneconfig gesture on fly - in response current state?

my workaround right handle gesture logic inside view instead (with panresponder/scrollview events) since navigator routes aren't transparent (#4494) it's not possible replicate default animation/gesture way.


Comments

Popular posts from this blog

wireshark - USB mapping with python -

c++ - nodejs socket.io closes connection before upgrading to websocket -

Deploying Qt Application on Android is really slow? -