-
-
Notifications
You must be signed in to change notification settings - Fork 719
New issue
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
[v4] | BottomSheet not showing when canceling native permissions #1791
Labels
bug
Something isn't working
Comments
@martinj-jaime Because the UI thread is stopped when the permission modal is displayed. You should wait until the gorhom's modal is shown and request permission. |
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. |
stale |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug
Video: https://github.com/gorhom/react-native-bottom-sheet/assets/35360048/cf5f59c7-a4ae-4ddc-8987-d350d1bb3c4f
mobizen_20240408_124415.mp4
The error is that when you cancel the permissions of Location.requestForegroundPermissionsAsync() before the bottom sheet is displayed for the first time, it is not displayed. The problem is that once it fails it is never reset again no matter how many times you re-enter the screen.
As shown in the video, it took me a few tries on my Android Samung Galaxy A10.
Environment info
"expo-location": "~16.1.0",
"expo-status-bar": "~1.6.0",
"@gorhom/bottom-sheet": "^4.6.1",
"react-native-screens": "~3.22.0",
"react-native-reanimated": "~3.3.0",
"@react-navigation/native": "^6.1.14",
"react-native-gesture-handler": "~2.12.0",
"@react-navigation/native-stack": "^6.9.22",
"react-native-safe-area-context": "4.6.3"
Tested on Android Samsung A10
Steps To Reproduce
Reproducible sample code
https://snack.expo.dev/@martinjaime/bottom-sheet-v4-reproducible-issue-template
The text was updated successfully, but these errors were encountered: