intergalacticspacehighway / react-native-reanimated-zoom

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

Cannot assign to read-only property 'config' #20

Closed sregg closed 1 year ago

sregg commented 1 year ago
image

We're seeing this crash in react-native-gesture-handler when using the Zoom component inside a FlatList created with createZoomListComponent() and scrolling through the list.

The crash coincides with our upgrade from React Native 0.67 to 0.70 but the causality is not clear.

We're using react-native-reanimated-zoom v0.3.3

sregg commented 1 year ago

I found a way to fix this. Instead of having the Zoom component surrounding each photo item in the FlatList, we surrounded the entire FlatList with Zoom and the crash is gone.