crashing on Android
Opened this issue · 4 comments
ajonno commented
hi, thanks for putting this example together very helpful.
works fine on ios for taking a photo or choosing one from the gallery. works fine for android when choosing a photo.
however the app crashes without any sort of error log if a picture is taken from the camera on Android.
did you see this issue and resolve it at all ?
josehernandezv commented
+1
josehernandezv commented
@ajonno Could you solve the issue?
mtahir08 commented
@ajonno @josehernandezv
facing same problem using camera Roll in android
have you guys resolved this issue?
nguquen commented
_pickImage() {
this.setState({ uploadURL: '' })
ImagePicker.launchCamera({}, response => {
if (!response.didCancel && !response.error) {
uploadImage(response.uri)
.then(url => this.setState({ uploadURL: url }))
.catch(error => console.log(error))
}
})
}
I use this code to take a picture from camera and upload, works fine on android.