Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

override backswipe behaviour in ios and android react native

useEffect(() => {
  const gestureEndListener = () => {
    console.log('iOS back gesture ended');
  };
  // https://reactnavigation.org/docs/3.x/navigation-events
  const gestureHandler = navigation.addListener('didBlur', gestureEndListener);
  return () => {
    gestureHandler.remove();
  };
}, []);
 
PREVIOUS NEXT
Tagged: #override #backswipe #behaviour #ios #android #react #native
ADD COMMENT
Topic
Name
9+8 =