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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[馃悰] Android: Cannot read property 'showImagePicker' of undefined #2255
Comments
To put it simply, another way: Right before ImagePicker.showImagePicker() I put in a couple console.log's console.log('ImagePicker:'); Which yields: WHY is the library "undefined", when I'm clearly loading it properly at the top of my React Native file? |
Ok, I solved my own problem. I had to look at the code and really dig. The documentation, getting started guide for this library is TOTALLY useless. You can't even start a blank app and paste in the demo code and get it to work! Observe: Documentation: By that they meant: NOT THE SAME THING. No offense. |
|
Description
I run the sample code, the app crashes with this error:
Cannot read property 'showImagePicker' of undefined, js engine: hermes
How to repeat issue and example
I run the sample code, the app crashes with this error:
Cannot read property 'showImagePicker' of undefined, js engine: hermes
import ImagePicker from 'react-native-image-picker';
Solution
App needs to not crash.
Additional Information
Android
Linux
VSCode
The text was updated successfully, but these errors were encountered: