react-native-reanimated: [Reanimated] Couldn't determine the version of the native part of Reanimated. - Expo SDK 50

Description

It seems that there’s an issue with react-native-reanimated in Expo SDK 50 (50.0.2). Whenever I start Expo with expo start, there’s a warning:

 WARN  [Reanimated] Couldn't determine the version of the native part of Reanimated.
    See `https://docs.swmansion.com/react-native-reanimated/docs/guides/troubleshooting#couldnt-determine-the-version-of-the-native-part-of-reanimated` for more details.
    at ContextNavigator (http://192.168.1.45:8081/node_modules/expo-router/entry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.routerRoot=app:152328:24)
    at ExpoRoot (http://192.168.1.45:8081/node_modules/expo-router/entry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.routerRoot=app:152284:28)
    at App
    at ErrorToastContainer (http://192.168.1.45:8081/node_modules/expo-router/entry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.routerRoot=app:189104:24)
    at ErrorOverlay
    at withDevTools(ErrorOverlay) (http://192.168.1.45:8081/node_modules/expo-router/entry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.routerRoot=app:188638:27)
    at RCTView
    at View (http://192.168.1.45:8081/node_modules/expo-router/entry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.routerRoot=app:40740:43)
    at RCTView
    at View (http://192.168.1.45:8081/node_modules/expo-router/entry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.routerRoot=app:40740:43)
    at AppContainer (http://192.168.1.45:8081/node_modules/expo-router/entry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.routerRoot=app:40551:36)
    at main(RootComponent) (http://192.168.1.45:8081/node_modules/expo-router/entry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.routerRoot=app:124397:28)

Steps to reproduce

  1. Create new Expo project with npx create-expo-app --template
  2. Select Navigation (TypeScript) template
  3. cd into project
  4. Delete package-lock.json and node_modules
  5. yarn install
  6. Install React Native Reanimated - npx expo install react-native-reanimated
  7. Add 'react-native-reanimated/plugin' to babel.config.js
  8. Add the following JSX to components/EditScreenInfo.tsx:
import Animated from 'react-native-reanimated';

<Animated.View
      style={{
        width: 100,
        height: 100,
        backgroundColor: 'violet',
      }}
    />
  1. Run the app with yarn start

Snack or a link to a repository

https://github.com/alan-hadyk/reanimated-expo-bug

Reanimated version

3.6.0

React Native version

0.73.2

Platforms

iOS

JavaScript runtime

Hermes

Workflow

Expo Go

Architecture

Paper (Old Architecture)

Build type

Debug app & dev bundle

Device

iOS simulator

Device model

iPhone 15 Pro (iOS 17.2)

Acknowledgements

Yes

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 18
  • Comments: 22 (4 by maintainers)

Most upvoted comments

same problem

Please, instead of adding a comment to say “Same problem”, rather just add a thumbs up to the first comment.

You can use the newest patch version - https://www.npmjs.com/package/react-native-reanimated/v/3.6.2 We removed this warning.

I’m seeing similar, but mine seems to fully throw. Weirdly the versions log okay, but it errors when trying to access: const babelVersion = value.__initData.version;

Screenshot 2024-01-21 at 19 14 32

same issues after the update expo 50 sdk

Experiencing same issue

Same problem here

Ok I was able to fix for some reason my app.json somewhere i had added

"expo": { "install": { "exclude": [ "react-native-reanimated" ] } },

Removing this and running -fix again allowed the correct reanimate library to be installed. I don’t remember why I added that but maybe others did as well.

Same after expo 50 upgrade