How to detect globally if currently ANY bottom sheet is open? #1916
Unanswered
yolpsoftware
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Our UI has many screens with nested components, as is usual in React. Some of these components can open bottom sheets on their own, without their parent UI "knowing" anything about these bottom sheets.
Some of the UIs show some feature highlight to the user, i.e. hint overlays about certain features on the UI, similar to this one:
These hints need to be disabled if one of the bottom sheets is open (regardless which one, just ANY sheet). So, the code that runs these feature highlights needs a way to check, "is any bottom sheet open right now?", and if this turns out YES, it needs to wait with the feature highlight until a later time.
Now I've got some kind of global-local conflict. Those bottom sheets and those feature highlights are both defined locally, and I don't see a way one of them can know about the other.
Is there some way in react-native-bottom-sheet to check whether currently ANY bottom sheet is open?
Beta Was this translation helpful? Give feedback.
All reactions