Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
leadbassist opened this issue Apr 8, 2022 · 4 comments

Comments

@leadbassist
Copy link

leadbassist commented Apr 8, 2022

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
Copy link

Having same issues. Any solution for that ?

@hanumancode
Copy link

same here

@andreibahachenka
Copy link

andreibahachenka commented Jun 1, 2022

did anyone get a solution?

@antoniofranciscoandrade
Copy link

antoniofranciscoandrade commented Oct 1, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants