Closed eagleblack closed 8 months ago
useFocusEffect( React.useCallback(() => { const onBackPress = () => { console.log("Hey") };
const subscription = BackHandler.addEventListener('hardwareBackPress', onBackPress); return () => subscription.remove();
}, []) );
useFocusEffect( React.useCallback(() => { const onBackPress = () => { console.log("Hey") };
}, []) );