react-native-big-list icon indicating copy to clipboard operation
react-native-big-list copied to clipboard

onScroll in BigList?

Open ydv0121 opened this issue 3 years ago • 8 comments

onScroll isn't available in BigList? @marcocesarato

ydv0121 avatar Jul 28 '21 10:07 ydv0121

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 avatar Jul 28 '21 10:07 marcocesarato

@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 ;)

koukoujohn avatar Aug 06 '21 08:08 koukoujohn

@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

ydv0121 avatar Aug 18 '21 08:08 ydv0121

I have run into this problem as well. If we could use this with the Animated.createAnimatedComponent(BigList) it would amazing.

haibert avatar Aug 19 '21 16:08 haibert

@koukoujohn @haibert have you managed to solve / workaround the issue?

labtorie avatar Feb 21 '22 15:02 labtorie

any solutions for useNativeDriver: true not working ?

december1990 avatar May 28 '22 18:05 december1990

@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)

larsmunkholm avatar Nov 10 '22 07:11 larsmunkholm

Hi @haibert, Did you solve this problem with any workaround or something?

anastely avatar Jan 15 '23 08:01 anastely