react-native-draggable-flatlist icon indicating copy to clipboard operation
react-native-draggable-flatlist copied to clipboard

Expo SDK 52 | “Cannot read property 'version' of undefined”

Open Froredion opened this issue 8 months ago • 1 comments

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:

  1. Create a project with Expo SDK 52.
  2. Install:
  3. Try to use DraggableFlatList in your app.
  4. 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.

Image

Froredion avatar Apr 26 '25 13:04 Froredion

Hey! I'm in a process of making my own version of this and I'll be sharing my work.

Froredion avatar Apr 26 '25 13:04 Froredion