marcocesarato / react-native-big-list

This is a high performance list view for React Native with support for complex layouts using a similar FlatList usage to make easy the replacement. This list implementation for big list rendering on React Native works with a recycler focused on performance and memory usage and so it permits processing thousands items on the list.
https://marcocesarato.github.io/react-native-big-list-docs/
Apache License 2.0
532 stars 43 forks source link

issue with ScrollViewComponent prop #204

Open december1990 opened 2 years ago

december1990 commented 2 years ago

hi , thank you for this great package. based on the comment at https://github.com/marcocesarato/react-native-big-list/pull/137#issue-1104687894 I tried to pass reanimated scrollview to BigList but scrolling functionality stops working.

import { useValue, onScrollEvent } from 'react-native-redash'; import Animated from 'react-native-reanimated';

const y = useValue(0); const onScroll = onScrollEvent({y}); const AnimatedScrollView = Animated.createAnimatedComponent(ScrollView);

< BigList ScrollViewComponent={AnimatedScrollView} {...{onScroll}} .... />