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

PhotoEditor.Edit() Crashing

Open AllRiskNetto opened this issue 3 years ago • 8 comments

When I make a PhotoEditor.Edit it's crashing the app

image

My Coding

AllRiskNetto avatar Dec 18 '20 14:12 AllRiskNetto

I am Facing the Same problem. I think We are not supposed to be using URI as Path or something like move the image to app sandbox which i don't understand myself. If you Have Figured out the solution please Share.

aziz-hayan avatar Dec 19 '20 14:12 aziz-hayan

I am studying react-native-fs to come up with a logic of when the image comes from the camera I throw this photo to a directory and then pass the path to the component.

NOTE: if the photo is in the gallery, everything works normally

AllRiskNetto avatar Dec 21 '20 12:12 AllRiskNetto

hello, as I'm using the react-native-image-picker in the component's response it gives me the path where the image is stored on the device, so the solution I found was to pass this path to the component instead of the uri

AllRiskNetto avatar Dec 21 '20 17:12 AllRiskNetto

Hi, for me this error was caused due to stickers in iOS you have to either remove them or add them to your project as mentioned in this comment. https://github.com/prscX/react-native-photo-editor/issues/109#issuecomment-582643497

hope this helps.

mshehrozsajjad avatar Dec 31 '20 08:12 mshehrozsajjad

@AllRiskNetto I'm facing same problem could you please help me, i'm passing uri like below. PhotoEditor.Edit({ path: this.state.imageCollection[0].uri, }); Please help me on how to pass path to the component.

ProgrammerPawan avatar Aug 07 '21 12:08 ProgrammerPawan

@AllRiskNetto I'm facing same problem could you please help me, i'm passing uri like below. PhotoEditor.Edit({ path: this.state.imageCollection[0].uri, }); Please help me on how to pass path to the component.

Are you solved this issue?, because this is also happen for me

sadewa25 avatar Jun 19 '22 15:06 sadewa25

pay attention to your image path, get console.log wherever you path is there, and get the correct path of your photo. the problem is your photo path. else pay attention to your pod file and flipper kit installation. i solved the problem!

zaraganja avatar Nov 03 '22 11:11 zaraganja

Is this crash same as mine? I am getting the crash on main.m file.

Thread 1: "*** -[__NSArrayM insertObject:atIndex:]: object cannot be nil" Please give an helping hand to fix this issue.

srinu6 avatar Jun 17 '24 07:06 srinu6