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

Unable to resize image. Most likely due to not enough memory. #24

Closed
hossein-zare opened this issue May 12, 2020 · 1 comment
Closed

Comments

@hossein-zare
Copy link

hossein-zare commented May 12, 2020

I'm getting this error from react-native-image-resizer package.

Unable to resize image. Most likely due to not enough memory.

The package i believe doesn't work well with images taken with the camera, not due to not enough memory.
I think another package should be tried.

@hossein-zare
Copy link
Author

For those who face this annoying error.
in android/app/src/main/AndroidManifest.xml add android:largeHeap="true" to the application tag.

<application
      ...
      android:largeHeap="true"
      ...
>

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

1 participant