Skip to content
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

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

achou11
Copy link
Member

@achou11 achou11 commented Feb 15, 2023

A couple of issues that are fixed:

  1. 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:

      image
    • After:

      image
  2. 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

@achou11 achou11 requested a review from ErikSin February 15, 2023 17:59
@achou11 achou11 force-pushed the ac/bottom-sheet-modal-refactor branch from c1a86df to 5b67805 Compare February 15, 2023 18:24
@@ -51,7 +52,9 @@ const App = () => (
<PermissionsProvider>
<AppLoading>
<AppProvider>
<AppContainerWrapper />
<BottomSheetModalProvider>
Copy link
Contributor

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

addressed in db02e2d

Copy link
Contributor

@ErikSin ErikSin left a 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

@ErikSin
Copy link
Contributor

ErikSin commented Feb 16, 2023

Closes #1082

@achou11 achou11 force-pushed the ac/bottom-sheet-modal-refactor branch from 5b67805 to 310401b Compare February 16, 2023 17:35
@ErikSin
Copy link
Contributor

ErikSin commented Feb 20, 2023

@achou11 Im not going to include this in the upcoming release. It touches more parts than we QA. So for the time being, I am going to merge this PR , which is a repeat of your work (but scoped to the one modal). For the next release, we can add this PR, and QA all the modals.

@achou11 achou11 mentioned this pull request Feb 21, 2023
@achou11 achou11 force-pushed the ac/bottom-sheet-modal-refactor branch from 310401b to 94d4eb0 Compare March 2, 2023 16:23
@achou11 achou11 force-pushed the ac/bottom-sheet-modal-refactor branch from db02e2d to 5a350dd Compare June 15, 2023 12:53
@achou11
Copy link
Member Author

achou11 commented Jun 15, 2023

@ErikSin any interest in revisiting this to get it merged for next release?

achou11 added 6 commits June 15, 2023 09:36
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants