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
TypeError: null is not an object (evaluating 'ImageCropPicker.openPicker') #1762
Comments
Solved it. I had to manually add Closing issue.. |
Hello. |
exactly same problem when import ImagePicker from 'react-native-image-crop-picker'; |
I managed to avoid this issue on iOS by manually adding
to my pod file and then running hope it might help |
Hi, |
Version
Tell us which versions you are using:
Platform
Tell us to which platform this issue is related
Expected behaviour
Module works
Actual behaviour
Module fails to launch with error:
TypeError: null is not an object (evaluating 'ImageCropPicker.openPicker')
I can import the module with no issues. As soon as I add any reference to it in my code (I don't even have to call it, just include it in the code) I get the above error and the app completely fails to launch as it will break AppRegistry. For example, I've got a button onclick listener which is attempting to launch the image picker:
I have to completely remove the reference to ImagePicker here or the code will not compile and just spits out errors - I've never encountered anything like this before, usually it won't error until I call the failing method!
Steps to reproduce
Follow install instructions
Run App on Android
Other info
I'm attempting to run this in a hybrid app (native app implementing some RN screens) but that should not be causing any problems here - everything works perfectly fine until I attempt to use this library. It is working without issue on iOS.
Have followed the additional instructions for installing in the readme.
I have attempted full cleans of the build, caches, node_modules, etc. but no luck.
The text was updated successfully, but these errors were encountered: