New Reanimated API #56
Closed
kirillzyusko
started this conversation in
Ideas
Replies: 1 comment
-
This feature was added in |
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
-
Is your feature request related to a problem?
Right now Reanimated API just copies standard Animated API (just returns an Animated/Reanimated value). Though Reanimated can offer more powerful API like
useAnimatedScrollHandler
which allows you to gradually control every aspect of animation.Having such API could help to create more powerful animations (like "step behind animation" (to create kind of parallax effect) - when you skip first frame, and then runs your animation one frame behind). Especially it could be useful on older Android devices, when keyboard is not perfectly synchronised with animated values - just theoretically we could use
withTiming
in each frame and thus animation could look much smoother (just theoretically 😄)Describe the solution you'd like
Would be good to introduce new hook
useKeyboardHandler
/useAnimatedKeyboard
(didn't think about the name a lot) with following API:Describe alternatives you've considered
There is no known alternatives at the moment, but it's just rough idea. During the implementation it could be polish and adopted to real use cases.
Additional context
I think theoretically it shouldn't be too difficult to add such API. Just need to understand whether it brings additional benefits. Maybe would be good to create a small demo in example to show the difference, between the standard approach and new one.
Beta Was this translation helpful? Give feedback.
All reactions