Supporting useNativeDriver in Animated.Event for onScroll events.
See original GitHub issueI would like to use https://reactnative.dev/docs/animated#handling-gestures-and-other-events with
recyclerlistview. Currently onScroll
accepts only javascript events.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5
Top Results From Across the Web
React Native Animated with useNativeDriver - Stack Overflow
Short answer: it isn't possible. You can use native driver only by passing Animated.event into onScroll handler.
Read more >Animated.event() with useNativeDriver returns an object, not a ...
This is specially useful for animations that follow the scroll position as without the native driver, the animation will always run a frame ......
Read more >Non-Native and Native Animated Values in React Native
The Solution. Simply use both the native and non-native variables! To do this, you must first listen for scroll events with the native...
Read more >Using Native Driver for Animated
Animated values are only compatible with one driver so if you use native driver when starting an animation on a value, make sure...
Read more >Master React Native Animations - Code Daily
This is where the useNativeDriver option comes in. ... At this time it's support for timing and spring and Animated.event when it is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
fixed by using
Animated.createAnimatedComponent( RecyclerListView )
apparently it works 😄