-
Notifications
You must be signed in to change notification settings - Fork 16
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
fix: fix issues with BottomSheetModal implementation #1083
base: develop
Are you sure you want to change the base?
Conversation
c1a86df
to
5b67805
Compare
@@ -51,7 +52,9 @@ const App = () => ( | |||
<PermissionsProvider> | |||
<AppLoading> | |||
<AppProvider> | |||
<AppContainerWrapper /> | |||
<BottomSheetModalProvider> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a comment explaining why this is here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addressed in db02e2d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 non-blocking comment
Closes #1082 |
5b67805
to
310401b
Compare
310401b
to
94d4eb0
Compare
db02e2d
to
5a350dd
Compare
@ErikSin any interest in revisiting this to get it merged for next release? |
This fixes the issue of the bottom sheet modal backdrop not overlaying the navigation header. Without this, the header is accessible even when the modal is open, which we don't want (e.g. header back button shouldn't be reachable). Uses suggestion provided in gorhom/react-native-bottom-sheet#1157
5a350dd
to
fa86384
Compare
A couple of issues that are fixed:
The backdrop didn't overlap the native navigation header, which meant that interaction with that header was not blocked, allowing things like going back to a previous screen when the modal was opened. Now it overlaps the header and prevents interaction there, as desired.
Before:
After:
When on a screen that contains the
BottomSheetModal
, the default disabled back behavior via Android's hardware back button was active even though the modal was closed. Now the disabled back behavior is disabled only when the modal is open