Declaratively change index of bottom sheet #990
Unanswered
novellizator
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
My use case is to use it for displaying congratulatory messages when achievements are attained.
Now imagine you have 3 achievements. We cannot have multiple instances of bottom sheets so I wanted to implement it this way:
Where myAchievement refers to the given achievement and is fetched from some (mobx state tree) store. Now the problem is that if I close MyBottomSheet (snap to index 0 =to snappoint 0%), new achievement will render the sheet closed as well. as "2" only refers to the "initial" index.. How would you solve it?
Beta Was this translation helpful? Give feedback.
All reactions