nysamnang / react-native-raw-bottom-sheet

Add Your Own Component To Bottom Sheet Whatever You Want (Android and iOS)
https://npmjs.com/package/react-native-raw-bottom-sheet
MIT License
1.09k stars 195 forks source link

BackEvent is not firing inside bottomsheet when system default back event is pressed #165

Closed eagleblack closed 8 months ago

eagleblack commented 1 year ago

useFocusEffect( React.useCallback(() => { const onBackPress = () => { console.log("Hey") };

const subscription = BackHandler.addEventListener('hardwareBackPress', onBackPress);

return () => subscription.remove();

}, []) );