question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Android] Reanimated 2.5.0 not compatible with expo

See original GitHub issue

Description

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:closed
  • Created 2 years ago
  • Reactions:8
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

8reactions
hirbodcommented, Mar 22, 2022

@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:

"expo": {
    "autolinking": {
        "android": {
            "exclude": ["react-native-reanimated"]
        },
    }
},
3reactions
piaskowykcommented, Mar 22, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found