Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't launch image editor in IOS #58

Open
yuchendong1996 opened this issue Jul 21, 2023 · 2 comments
Open

can't launch image editor in IOS #58

yuchendong1996 opened this issue Jul 21, 2023 · 2 comments

Comments

@yuchendong1996
Copy link

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

@Rodrigobanselmo
Copy link

same problem

@isubhann
Copy link

isubhann commented Aug 3, 2023

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants