-
Notifications
You must be signed in to change notification settings - Fork 337
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: undefined is not an object (evaluating 'ImageResizerAndroid.createResizedImage')] #87
Comments
Same thing is happening with me! Any luck? |
@jamesbaker1 sadly no. Had no time for this in the past days, tried it now again, but I still have no idea why this is not working. What about you? |
Seems like it was an issue with Expo not allowing you to add native code |
So it is not possible at all or how did you managed it to make it work? |
Expo.io do not allow to add modules with native code, so you have to "eject" from Expo to have a fully stand-alone React Native project before adding this module. |
We could add some kind of warning explaining that the module is not properly installed, or even detect that we're running inside of Expo to tell that the module is unsupported for now! |
All great points, I can add a check for expo if you want. I ended up doing the image compression on the back end, though. |
I am facing this same issue with 1.0.0, no use of Expo though EDIT: forget about it, I forgot to link.. 👍 |
For future viewers, I got this issue as well because I forgot to restart iOS simulator after linking. |
Closed as staled issue with old version of React-Native or react-native-image-resizer. |
Try This
|
I checked the other issues but that did not help me.
I'm not quite sure what could be wrong in my Code, maybe because i'm using expo.io?
So, here is what i'm doing. (Some Snippets)
What console says:
console.log(ImageResizer)
showsconsole.log(result);
(from the imagepicker)console.log(err)
makes my life hard withMaybe you can help me... i'm using "react-native-image-resizer": "^0.1.1" in package.json. Tested on my Nexus 6P (Android)
The text was updated successfully, but these errors were encountered: