react-native-draggable-flatlist icon indicating copy to clipboard operation
react-native-draggable-flatlist copied to clipboard

Animated header

Open Quyetsama opened this issue 3 years ago • 3 comments

I want to create a animated header when scroll, but prop onScroll not work onScroll={Animated.event( [{ nativeEvent: { contentOffset: { y: offset } } }], { useNativeDriver: false } )}

Quyetsama avatar Jan 15 '23 03:01 Quyetsama

convert component to Animated component.

ex. const ReanimatedDraggableFlatList = Animated.createAnimatedComponent(DraggableFlatList);

VickyA371 avatar Jan 16 '23 08:01 VickyA371

Try this fork https://github.com/vickyneosoft/react-native-draggable-flatlist?organization=vickyneosoft&organization=vickyneosoft

Use below method to animate your scroll

const onScroll = useCallback((event) => {
    console.log('event : ', event);
}, [])

And NO NEED to use createAnimatedComponent already done by library

Hope this will surely work for you

VickyA371 avatar Jan 17 '23 05:01 VickyA371