Skip to content

Conversation

@david-gomes5
Copy link
Contributor

Motivation

Fixes a regression introduced in v4.4.8 from #1309 that breaks dismissAll from the useBottomSheetModal hook when stacking multiple bottom sheet modals.

Reproduction

  • Run the example app
  • Press Stack Modals
  • Press multiple Present Modal [A|B|C] buttons to stack multiple bottom sheets
  • Press Dismiss All Modal button

Fails to dismiss all bottom sheets

@gorhom
Copy link
Owner

gorhom commented Sep 17, 2023

good catch @david-gomes5 ! thanks for the PR

@gorhom gorhom merged commit 6fc2cd1 into gorhom:master Sep 17, 2023
@david-gomes5 david-gomes5 deleted the fix-dismissAll-not-dismissing-multiple-bottom-sheets branch September 17, 2023 18:40
@bryanprimus
Copy link

bryanprimus commented Oct 20, 2023

just about to file an issue about this. calling dismiss in sheet1 and present in sheet2 at the same time causing glitch

but seems already fixed by this PR

Screen.Recording.2023-10-20.at.19.28.11.mov

Thanks

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.

3 participants