[Android] Reanimated 2.5.0 not compatible with expo
See original GitHub issueDescription
When updating to 2.5.0, expo cannot find the relevant reanimated package anymore. The following line in the generated expo file is breaking:
error: package expo.modules.adapters.reanimated does not exist
new expo.modules.adapters.reanimated.EXReanimatedPackage(),
Expected behavior
Works with latest version of expo.
Actual behavior & steps to reproduce
Build error when compiling. The only workaround is to exclude the reanimated package from the expo package list via
Inside the package.json file:
"expo": {
"autolinking": {
"exclude": [
"react-native-reanimated"
]
}
},
Snack or minimal code example
Use a template expo 44 project and add reanimated 2.5.0. The android build will fail with the mentioned error.
Package versions
| name | version |
|---|---|
| react-native | 0.67.4 |
| react-native-reanimated | 2.5.0 |
| NodeJS | |
| Xcode | |
| Java | |
| Gradle | |
| expo | 44.0.6 |
Affected platforms
- Android
- iOS
- Web
Issue Analytics
- State:
- Created 2 years ago
- Reactions:8
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Installation | React Native Gesture Handler - Software Mansion
To use the version of react-native-gesture-handler that is compatible with your managed Expo project, run expo install react-native-gesture-handler .
Read more >Reanimated - Expo Documentation
Reanimated uses React Native APIs that are incompatible with "Remote JS Debugging" for ... Android Device, Android Emulator, iOS Device, iOS Simulator, Web ......
Read more >react-native-reanimated - npm
More powerful alternative to Animated library for React Native.. Latest version: 2.13.0, last published: a month ago.
Read more >Incompatible SDK version or no SDK version Expo Go
0." Running app with npx expo start on any device (Android or Ios) and any simulator (Android or Ios). Tried expo upgrade ...
Read more >failed to initialize react-native-reanimated library - You.com
I'm working on a managed expo app and I use eas services. ... Because of that I can not build the app in...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@thespacemanatee I have not encountered any downsides so far. v2.5.0 has auto install support https://github.com/software-mansion/react-native-reanimated/pull/3005
I did not try if excluding has any side-effects for iOS, but you can also only exclude for android, like so:
Hey, Expo hasn’t supported the newest Reanimated version yet. They going to update Reanimated version at the end of March. We can’t add by ourselves we need to wait for the Expo team.