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

How to use this lib with react-native-image-crop-picker or react-native-image-picker? #215

Open
abdoerrahiem opened this issue Sep 22, 2022 · 8 comments

Comments

@abdoerrahiem
Copy link

abdoerrahiem commented Sep 22, 2022

I want to use this library as editor of a photo taken by react-native-image-crop-picker or react-native-image-picker.
But when I put the result (uri) to path of this lib. It got blank and in onDone, the value still the same as before.
Capture

@iamharisdev
Copy link

I have same question did you fix this issue yet or not @abdoerrahiem

@DeuMiAn
Copy link

DeuMiAn commented Dec 7, 2022

react-native-image-picker로 가져온 uri를 아래처럼 바꾼후에 해보세요
uri?.replace('file:///', '');

@mickey35vn
Copy link

mickey35vn commented Jun 27, 2023

You should use the value of path (after received image from ImagePicker) as below:
const imagePath = image.path || image.uri;
const path = imagePath.replace("file://", "");

@GangaBS99
Copy link

can you tell how to use with image-crop-picker that is used above code also

@react06
Copy link

react06 commented Jul 4, 2023

not working for me too.

@GangaBS99
Copy link

GangaBS99 commented Jul 4, 2023

It worked for me.

const imagePath = image.path;
const path1 = imagePath.replace("file://", " ");

And give path: path1
It will work

@GangaBS99
Copy link

The image quality is very low compared to the original image. Any idea

@react06
Copy link

react06 commented Jul 7, 2023

@prscX I have done the same but for ios, it shows and then hides right after that. Any idea will be appreciated.

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

6 participants