This repository is a minimal reproduction for an issue in react-native-gesture-handler:
👉 On Android, the build fails if Reanimated is not installed, even if the app does not use it.
It looks like react-native-gesture-handler
still has hard references to Reanimated in the Android code (e.g. ReanimatedEventDispatcher.kt
).
- Create a fresh Expo project with SDK 54:
npx create-expo-app gh-repro
Install only react-native-gesture-handler:
sh
npm install [email protected] --legacy-peer-deps Do not install react-native-reanimated.
Run on Android:
sh
npx expo run:android --device Expected Behavior ✅ The app should build successfully with Gesture Handler, even if Reanimated is not installed.
Actual Behavior ❌ The build fails with unresolved references to ReanimatedModule, ReanimatedEventDispatcher.kt, and others in react-native-gesture-handler.
Environment React Native: 0.81.4
Expo SDK: 54
Gesture Handler: 2.16.2
Platform: Android (Debug/Release)
Architecture: New Architecture enabled (default with RN 0.81)
JS Runtime: Hermes