react-native-draggable-flatlist
react-native-draggable-flatlist copied to clipboard
Expo SDK 52 | “Cannot read property 'version' of undefined”
Describe the bug
Using Expo SDK 52 with React Native 0.76.9, I encounter the error:
TypeError: Cannot read property 'version' of undefined
This happens even after ensuring compatible versions of react-native-reanimated and other libraries.
To Reproduce
Steps to reproduce:
- Create a project with Expo SDK 52.
- Install:
react-native-reanimated@~3.16.7react-native-gesture-handler@~2.14.2[email protected]
- Try to use
DraggableFlatListin your app. - Launch app (
expo start, or EAS build).
Correct babel config json too, the app is working after I stopped using react-native-draggable-flatlist
Error occurs immediately!!
Platform & Dependencies
- Platform: Android and iOS (tested both in dev build)
- Expo SDK Version: 52
- React Native Version: 0.76.9
- Reanimated Version: 3.16.7
- React Native Gesture Handler Version: 2.14.2
- react-native-draggable-flatlist Version: 4.0.2
Additional context
- Resetting Metro bundler cache (
expo start -c) did not solve the problem. - Issue seems related to version mismatches between reanimated and draggable-flatlist.
- Possibly caused by outdated or incompatible Reanimated Babel plugins bundled with draggable-flatlist.
- Other projects without draggable-flatlist do not encounter this error.
Hey! I'm in a process of making my own version of this and I'll be sharing my work.