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

[🐛] Error: react-native-image-picker: NativeModule.ImagePickerManager is null. #2293

Open
sw-tt-vahidabanushaikh opened this issue May 6, 2024 · 1 comment
Labels

Comments

@sw-tt-vahidabanushaikh
Copy link

Description

After upgradation of react-native-image-picker package ,when i install application from android studio i am facing this errors and tried various possible solutions but not able got any possible solutions.

Exception in native call
com.facebook.react.common.JavascriptException: Error: react-native-image-picker: NativeModule.ImagePickerManager is null. To fix this issue try these steps:
• Run react-native link react-native-image-picker in the project root.

Exception in native call
com.facebook.react.common.JavascriptException: Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect.This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native., stack:
@9:289
value@50:3231
@50:758
value@50:2582
value@50:730
value@-1

Error: react-native-image-picker: NativeModule.ImagePickerManager is null.
To fix this issue try these steps:
• Run react-native link react-native-image-picker in the project root.
• Rebuild and re-run the app.
• If you are using CocoaPods on iOS, run pod install in the ios directory and then rebuild and re-run the app. You may also need to re-open Xcode to get the new pods.
• Check that the library was linked correctly when you used the link command by running through the manual installation instructions in the README.

  • If you are getting this error while unit testing you need to mock the native module. Follow the guide in the README.
    Tried above steps given by android studio in logs but not able to solve the issue.

How to repeat issue and example

  • step to reproduce the issue
  • ...

Solution

What needs to be done to address this issue?

Additional Information

  • Image Picker version: [^7.1.2]
  • React Native version: [^0.69.9]
  • Platform: [ Android]
  • Development Operating System: [Windows]
  • Dev tools: [Android studio]
    image
@Japoncio3k
Copy link

same here

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

No branches or pull requests

2 participants