question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Android] ShowImagePicker callback not triggered for takePhoto and chooseFromLibrary

See original GitHub issue

Console won’t show any log message for response content when back from take photo session and choose from library session, but only display console log content in cancel and custom button case.

I implementing it on React Native 0.22 and android phone using 4.4.4. Any idea what happened? I followed the guide for Android Installation. I get the npm package via npm install react-native-image-picker@latest --save

I tried launchCamera() and launchImageLibrary() also cannot trigger callback in my development phone. thanks.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:27 (11 by maintainers)

github_iconTop GitHub Comments

5reactions
yfukscommented, Apr 8, 2016

Try to add the super method in it

@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
  super.onActivityResult(requestCode, resultCode, data);
  mCallbackManager.onActivityResult(requestCode, resultCode, data);
}
1reaction
Xing-Hecommented, Nov 25, 2016

did u override the onActivityResult method,so checkout…and call super.onActivityResult(...),it works for me

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Android] ShowImagePicker callback not triggered for ... - GitHub
Console won't show any log message for response content when back from take photo session and choose from library session, but only display ......
Read more >
react-native-image-picker is not triggering the callback for ...
I am building a mobile application using React Native. My application needs to access photo library and camera. I am using this library,...
Read more >
How to pick images from Camera & Gallery in React Native app
In this post, you learned how to implement React Native Image Picker in your React Native app and pick the images from Camera...
Read more >
React Native Image Picker Tutorial | Pick from Camera, Gallery
In this tutorial, you'll learn how to pick an image from the photo gallery or from the camera for a react native app....
Read more >
ImagePicker - Expo Documentation
expo-image-picker provides access to the system's UI for selecting images and videos from the phone's library or taking a photo with the camera....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found