TypeError: ReanimatedModule.installTurboModule is not a function

See original GitHub issue

Description

Following error is beeing thrown when try to use createAnimatedComponent method

Error: Requiring module “node_modules\react-native-reanimated\src\createAnimatedComponent.tsx”, which threw an exception: TypeError: ReanimatedModule.installTurboModule is not a function

except adding plugins: [‘react-native-reanimated/plugin’] is there anything I have to do regarding to the package configuration?

Expected behavior

Actual behavior & steps to reproduce

Snack or minimal code example

import Animated from ‘react-native-reanimated’

Animated.createAnimatedComponent(HStack)

It applies to other methods as well. For example

useSharedValue(0)

throws the same exception.

Package versions

±- @babel/core@7.17.8 ±- @react-navigation/drawer@6.4.1 ±- @react-navigation/native@6.0.10 ±- @types/react@17.0.43 ±- @types/react-native@0.64.24 ±- @types/shortid@0.0.29 ±- expo@44.0.6 ±- expo-linking@3.0.0 ±- expo-status-bar@1.2.0 ±- moti@0.17.1 ±- native-base@3.3.10 ±- prettier@2.6.1 ±- react@17.0.1 ±- react-dom@17.0.1 ±- react-native@0.64.3 ±- react-native-checkbox-reanimated@0.1.1 ±- react-native-gesture-handler@2.3.2 ±- react-native-reanimated@2.5.0 ±- react-native-safe-area-context@4.2.4 ±- react-native-screens@3.13.1 ±- react-native-svg@12.3.0 ±- react-native-web@0.17.1 ±- shortid@2.2.16 ±- styled-components@5.3.5 ±- styled-system@5.1.5 `-- typescript@4.3.5

name version
react-native 0.64.3
react-native-reanimated 2.5.0
NodeJS 14.16.1
expo 44.0.6

Affected platforms

  • Android
  • iOS
  • Web

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:16
  • Comments:19 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
orhangazicommented, Apr 30, 2022

I am also getting on version 2.8.0

5reactions
Cookizzacommented, Apr 22, 2022

I am also getting this lately while running jest tests.

“react-native-reanimated”: “^2.3.2”, “jest”: “^26.6.3”,

Read more comments on GitHub >

github_iconTop Results From Across the Web

React-Natice-Reanimated not found - Stack Overflow
But now i a following error: TypeError: ReanimatedModule.installTurboModule is not a function. (In 'ReanimatedModule.installTurboModule()' ...
Read more >
null is not an object (evaluating '_reanimatedmodule.default ...
installTurboModule' is undefined) ERROR TypeError: ReanimatedModule.installTurboModule is not a function. (In 'ReanimatedModule.installTurboModule()' ...
Read more >
Installation | React Native Reanimated - Software Mansion
Reanimated 2 is primarily built in C++ using Turbo Modules infrastructure which is not yet completely deployed in React Native (specifically on Android)....
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 >
Reanimated - Expo Documentation
module.exports = function (api) { api.cache(true); return { presets: ['babel-preset-expo'], plugins: ['react-native-reanimated/plugin'], }; };.
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