Skip to content

fix: fix issues with BottomSheetModal implementation#1083

Open
achou11 wants to merge 6 commits intodevelopfrom
ac/bottom-sheet-modal-refactor
Open

fix: fix issues with BottomSheetModal implementation#1083
achou11 wants to merge 6 commits intodevelopfrom
ac/bottom-sheet-modal-refactor

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
<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