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
Post a Comment