rainbow-me / react-native-animated-charts

Set of components and helpers for building complex and beautifully animated charts
MIT License
922 stars 110 forks source link

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

Open leadbassist opened 2 years ago

leadbassist commented 2 years ago

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?

sophin123 commented 2 years ago

Having same issues. Any solution for that ?

hanumancode commented 2 years ago

same here

andreibahachenka commented 2 years ago

did anyone get a solution?

antoniofranciscoandrade commented 1 year ago

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.