Can't figure out how to create a simple custom handle that changes text based on animatedIndex #2136
Unanswered
andreastorp
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.
-
Disclaimer: This might be me not understanding SharedValue.
I am trying to change the text in our custom handle based on if the bottom sheet is "open or closed" (index 0 or index 1).
This is the code
It produces the following warning and it also doesn't rerender the text, when animatedIndex.value changes.
I've tried using DerivedValue, useEffect, useAnimatedReaction, useAnimatedProps and other methods in an attempt to make it work. Can some1 please help me resolve this fairly simple issue
Beta Was this translation helpful? Give feedback.
All reactions