react-native-photo-editor icon indicating copy to clipboard operation
react-native-photo-editor copied to clipboard

can't launch image editor in IOS

Open yuchendong1996 opened this issue 2 years ago • 2 comments

I can't launch image editor in IOS simulator. I had add pod in Podfile and run pod install. But when I call ImageEditor.open, The program will get stuck there and the .then will not be called My react native version: 0.71.0

yuchendong1996 avatar Jul 21 '23 07:07 yuchendong1996

same problem

Rodrigobanselmo avatar Aug 02 '23 17:08 Rodrigobanselmo

@yuchendong1996 You need to concat image uri with 'file://' to get it open in case of iOS. For example if the uri is like this "/private/var/mobile/Containers/Data/Application/8BF06247-0054-4801-B747-2BCD407A67A6/tmp/react-native-image-crop-picker/DE98896D-7A6E-406A-8D82-C179F39CF0E2.jpg".

then it'll fail. It should look like "file:///private/var/mobile/Containers/Data/Application/8BF06247-0054-4801-B747-2BCD407A67A6/tmp/react-native-image-crop-picker/DE98896D-7A6E-406A-8D82-C179F39CF0E2.jpg"

Moreover the editor is somehow not applying the edits in debug mode. Do test your application in release mode as well.

Hope this fix the issue you’re facing

isubhann avatar Aug 03 '23 13:08 isubhann