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

Crash onPress back button android while picking image #6

Open
edencakir opened this issue Jul 15, 2017 · 7 comments
Open

Crash onPress back button android while picking image #6

edencakir opened this issue Jul 15, 2017 · 7 comments

Comments

@edencakir
Copy link

edencakir commented Jul 15, 2017

java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=2233, result=0, data=null} to activity

This is the log of the crash after android back button press while uploading an image from Gallery.

React Native 0.46.3
Android Emulator Nexus 5,
Latest library version,
Example app code

@srameshr
Copy link

+1 Same on IOS too.

@edencakir
Copy link
Author

Any idea how to fix this? I can use a lead and fix it for Android

@srameshr
Copy link

@edencakir #4 Do you have any idea around this?

@edencakir
Copy link
Author

@srameshr I don't think this repo is being maintained. No ideas too.

@npomfret
Copy link
Owner

@srameshr iOS doesn't have a back button. What did you do to reproduce the issue?

@srameshr
Copy link

@npomfret I commented on the wrong thread 😅 . Actually my app was crashing as soon as I opened the editor because few permissions were missing on info.plist file.

@ibrahimahmed-io
Copy link

@edencakir This is the solution to your problem line 344 in RNImageToolsModule.java replace the whole function with this

void resolve(Uri uri) {
if(uri != null) {
String realPathFromURI = uri.toString();
if (callback != null) {
callback.resolve(realPathFromURI);
}
}
}

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

4 participants