react-native-big-list
react-native-big-list copied to clipboard
onScroll in BigList?
onScroll isn't available in BigList? @marcocesarato
Hi, yes it is available and it works like the scrollview prop
https://reactnative.dev/docs/scrollview#onscroll https://marcocesarato.github.io/react-native-big-list-docs/props
@marcocesarato Guys you have made an excellent and one of the most performant lists I've seen. Great job!
Could we open this ticket up again?
The reason is, I use onScroll with Animated or re-Animated to animate components of the header when the user is scrolling up or down.
But when I use useNativeDriver: true in React Animated, or re-Animated(reanimated uses the native driver by default) to set the Animated.Value of the animated components, it doesnt work at all. I dont get any errors, it just doesnt work.
If I dont use re-Animated, or use React Animated with the useNativeDriver set to false, then it works. but because the animation is not native everything is glitch because it uses the js bridge to animate.
If what Im asking is not clear and you need me to make a demonstration please tell me.
Keep up the good work ;)
@marcocesarato Guys you have made an excellent and one of the most performant lists I've seen. Great job!
Could we open this ticket up again?
The reason is, I use onScroll with Animated or re-Animated to animate components of the header when the user is scrolling up or down.
But when I use useNativeDriver: true in React Animated, or re-Animated(reanimated uses the native driver by default) to set the Animated.Value of the animated components, it doesnt work at all. I dont get any errors, it just doesnt work.
If I dont use re-Animated, or use React Animated with the useNativeDriver set to false, then it works. but because the animation is not native everything is glitch because it uses the js bridge to animate.
If what Im asking is not clear and you need me to make a demonstration please tell me.
Keep up the good work ;)
same issue with me.i am also using animation with diffClamp.it creating issue
I have run into this problem as well. If we could use this with the Animated.createAnimatedComponent(BigList) it would amazing.
@koukoujohn @haibert have you managed to solve / workaround the issue?
any solutions for useNativeDriver: true not working ?
@december1990 @labtorie Please have a go with the latest version. I've added a workaround for this issue (https://github.com/marcocesarato/react-native-big-list/pull/273)
Hi @haibert, Did you solve this problem with any workaround or something?