prscX / react-native-photo-editor

React Native: Native Photo Editor
Apache License 2.0
1.12k stars 241 forks source link

Selecting image through imagepicker and passing it to the Path of photoEditor but shows black Screen #228

Open saadahmad551 opened 11 months ago

saadahmad551 commented 11 months ago

Help would be appreciated

alihussainkabri commented 9 months ago

edit story is a page where i have PhotoEDITOR places so you need to just split the url you got from image picker and pass to next page and use there

navigation.navigate('EditStory', { photo: var_image?.uri?.split('://')[1] })

ItxAltaf commented 5 months ago

use like this...

ImageCropPicker.openPicker(gStyles.imgPicker).then(image => { PhotoEditor.Edit({ path: image.path?.split('://')[1], hiddenControls:[ 'crop','save','clear'], onDone:(res)=>{ console.log('res', res) setFile(image);

    }
  });