intergalacticspacehighway / react-native-reanimated-zoom

Component for zooming react native views. 🔎
MIT License
315 stars 19 forks source link

createZoomListComponent doesn't work with FlashList #22

Open edtjulien opened 1 year ago

edtjulien commented 1 year ago

Hey and thanks for this amazing lib.

I use createZoomListComponent to keep the scrolling gesture. The Zoom component is on each items of the list.

Everything works fine with ScrollView and FlatList components. But not with the FlashList. FlashList improve so much performances: https://docs.expo.dev/versions/latest/sdk/flash-list/

I tried both: createZoomListComponent(FlashList); createZoomListWithReanimatedComponent(FlashList);

But I can't scroll when I begin my touch scroll in the Zoom item. Any idea to make it work by modifying the createZoomListComponent?

I use a workaround for now by unactivate totally the Gesture.Pan() and only use the Gesture.Pinch() (in zoom.tsx). But it's not the best way of course.