react-native-animated-charts icon indicating copy to clipboard operation
react-native-animated-charts copied to clipboard

Expo crashes when I add ANY of the import commands: "TypeError: this.InnerNativeModule.configureProps is not a function."

Open leadbassist opened this issue 3 years ago • 4 comments

Windows. React Native project. Yarn. Using Expo. Followed your docs:

  1. installed react-native-reanimated (~2.3.1).
  2. Adjusted my babel.config.js file.
  3. Installed @rainbow-me/animated-charts (^1.0.0-alpha.6)
  4. Cleared Expo bundler cache using "expo start --clear"

Used your example on a separate screen: image

Phone shows: image

Now the problem will happen:

As soon as I add ANY or ALL of the imports, Expo crashes. image

image

Is there a solution to this?

leadbassist avatar Apr 08 '22 04:04 leadbassist

Having same issues. Any solution for that ?

sophin123 avatar Apr 12 '22 01:04 sophin123

same here

hanumancode avatar May 07 '22 10:05 hanumancode

did anyone get a solution?

andreibahachenka avatar Jun 01 '22 13:06 andreibahachenka

This happens because @rainbow-me/react-native-animated-charts has a version of react-native-reanimated inside its node_modules folder instead of listing it as a peer dependency, and it is trying to use the same native module as the newer instance installed on your project. The older instance tries to call a removed function in the newer version of the native module, which causes this error. To fix this, modify your package.json to use only one version of reanimated by adding the following:

For yarn

"resolutions": {
  "react-native-reanimated": <your reanimated version>
}

For npm

"overrides": {
  "react-native-reanimated": <your reanimated version>
}

Then run yarn or npm install accordingly.

antoniofranciscoandrade avatar Oct 01 '22 21:10 antoniofranciscoandrade