We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1. I have tried this way and couple other options. but still not perfectly working. Sometimes it blocks to navigate back.
const handleAndroidBackButton = useCallback(() => { if (Platform.OS === 'android' && updateIndex >= 0) { console.log(`updateIndex:`, updateIndex); bottomSheetModalLayoutRef.current?.close(); setUpdateIndex(-1); return true; // Consume the back press event } return false; // Allow default back press behavior if bottom sheet is closed }, [updateIndex, bottomSheetModalLayoutRef]); useEffect(() => { const backHandlerSubscription = BackHandler.addEventListener( 'hardwareBackPress', handleAndroidBackButton, ); return () => { backHandlerSubscription.remove(); }; }, [handleAndroidBackButton]);
The text was updated successfully, but these errors were encountered:
@salahbm: hello! 👋
This issue is being automatically closed because it does not follow the issue template.
Sorry, something went wrong.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue was closed because it has been stalled for 5 days with no activity.
No branches or pull requests
Feature Request
1. I have tried this way and couple other options. but still not perfectly working. Sometimes it blocks to navigate back.
Why it is needed
Possible implementation
Code sample
The text was updated successfully, but these errors were encountered: