ivpusic / react-native-image-crop-picker

iOS/Android image picker with support for camera, video, configurable compression, multiple images and cropping
MIT License
6.1k stars 1.55k forks source link

path not working #1681

Open unit-002 opened 2 years ago

unit-002 commented 2 years ago

Version

Platform

Expected behaviour

Actual behaviour

Attachments

const imagePath = `file:///storage/emulated/0/MyFolder/${filename}`

ImagePicker.openPicker({
  path: imagePath,
  freeStyleCropEnabled: true,
  cropping: true,
})
.then((image) => {
  SaveCropToStorage(image)
})

or

ImagePicker.openCropper({
  path: imagePath,
  freeStyleCropEnabled: true,
  cropping: true,
})
.then((image) => {
  SaveCropToStorage(image)
})

Love react-native-image-crop-picker? Please consider supporting our collective: 👉 https://opencollective.com/react-native-image-crop-picker/donate

willcray commented 2 years ago

Following this answer fixed it for me.

unit-002 commented 2 years ago

@willcray I already did but still not going to the exact folder location it's just opening the gallery

ImReyon commented 1 year ago

+1