True Sheet re-opens on goBack after navigating from inside the sheet #594
luckykenlin
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
React Native True Sheet is awesome
I current facing a issue, I want the following behavior:
I click a button inside the sheet, navigate to another screen (navigation.navigate), and the sheet should dismiss automatically. ✅ This works.
However, when I navigation.goBack() from the new screen, the sheet re-opens. ❌
I want to completely dismiss the sheet so it does not re-open on back navigation.
If I first call sheet.current?.dismiss() before navigating, it works, but it's slow, Seem like have to wait for the dismiss animation to finish before navigating.
Is there a recommended way to dismiss the sheet immediately (without waiting) and prevent it from reopening on back navigation?
Sorry if this is already documented somewhere — I might have missed it.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions