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();
};
}, []);