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

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

Open abdoerrahiem opened this issue 3 years ago • 8 comments

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

abdoerrahiem avatar Sep 22 '22 08:09 abdoerrahiem

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

iamharisdev avatar Nov 02 '22 05:11 iamharisdev

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

DeuMiAn avatar Dec 07 '22 04:12 DeuMiAn

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://", "");

mickey35vn avatar Jun 27 '23 13:06 mickey35vn

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

GangaBS99 avatar Jul 04 '23 11:07 GangaBS99

not working for me too.

react06 avatar Jul 04 '23 12:07 react06

It worked for me.

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

And give path: path1 It will work

GangaBS99 avatar Jul 04 '23 13:07 GangaBS99

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

GangaBS99 avatar Jul 04 '23 13:07 GangaBS99

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

react06 avatar Jul 07 '23 05:07 react06