Replies: 1 comment
-
I also am unsure how to use refs in reanimated. I am also getting similar undefined values. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I was trying to set a value to
useRef
variable insideuseAnimatedReaction
and found out that it doesn't do anything:Unlike setting
useState
variable, it didn't throw any error so I was expecting this to work.Using
useSharedValue
instead ofuseRef
works fine but I'm just curious if this is expected behavior. If it is, then I think it would be nice to display error/warning message just like when trying to set state.Beta Was this translation helpful? Give feedback.
All reactions