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

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -