[Android][ImagePicker] launchImageLibraryAsync doesn't return
See original GitHub issueš Bug Report
launchImageLibraryAsync only returning/completing some of the time, in most cases nothing happens once selecting an image.
Environment
Android testing device details: Alba 57, Android 8.1.0
Expo CLI 3.0.9 environment info: System: OS: macOS 10.14.6 Shell: 5.3 - /bin/zsh Binaries: Node: 12.6.0 - /usr/local/bin/node npm: 6.10.0 - ~/.npm-global/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman IDEs: Xcode: 10.3/10G8 - /usr/bin/xcodebuild npmPackages: expo: ^33.0.0 => 33.0.7 react: 16.8.3 => 16.8.3 react-native: https://github.com/expo/react-native/archive/sdk-33.0.0.tar.gz => 0.59.8 react-navigation: 3.0.0-rc.4 => 3.0.0-rc.4 npmGlobalPackages: expo-cli: 3.0.9
iOS and android standalone apps, built via expo build:<>
Steps to Reproduce
I am simply pressing a button which launches the imagePicker and selecting an image and then saving the result to state. I am also console logging the result to check.
Expected Behavior
I expect some data to be logged to the console and the state to be updated with the imagePicker image result
Actual Behavior
The modal for selecting the image goes away, but no data is output to the console and the state isnt updated with the imagePicker result
Reproducible Demo
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:6 (2 by maintainers)
I needed to download the update to Expo, I got it from the playstore originally, and it was version 2.12.0 - I updated to 2.12.2, but still the same issue. The phone version is android 8, all patches up to date.
I have a radio button component on a page where I choose an image source; from gallery, camera or file. I use the image picker for the first 2 choices and the document picker for the 3rd.
Doc picker worked every time. Image picker worked once or twice, then nothing unless I canceled the action. Imagepicker version was 6.0.0, doc picker is 6.0.0 as well. Only way to get it to work was to reboot the mobile device I was testing on. After updating to 2.12.2 I was able to do 5 or 6 straight image uploads and 5 to 6 camera uploads, so I think that was my issue. Thanks for helping me get through that!
Brian /) /) /)/)
Just tested this on an emulator (Android 9) and itās working each time. Will need to repro this before we can look into this properly (please use the snack I linked above since itās working for me). Couple things:
ā You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
Just tested this on an emulator (Android 9) and itās working each time. Will need to repro this before we can look into this properly (please use the snack I linked above since itās working for me). Couple things:
"expo-image-picker": "~6.0.0",
, you can install it withexpo install expo-image-picker