CodeLinkIO / Firebase-Image-Upload-React-Native

Demo to handle image with Firebase storage
129 stars 22 forks source link

crashing on Android #10

Open ajonno opened 7 years ago

ajonno commented 7 years ago

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 7 years ago

+1

josehernandezv commented 7 years ago

@ajonno Could you solve the issue?

mtahir08 commented 7 years ago

@ajonno @josehernandezv facing same problem using camera Roll in android have you guys resolved this issue?

nguquen commented 7 years ago
  _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.