intergalacticspacehighway/react-native-reanimated-zoom

Cannot assign to read-only property 'config'

sregg opened this issue · 1 comments

sregg commented

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

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.