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

UIApplicationMain problem on IOS

Open hamdigatri opened this issue 4 years ago • 2 comments

Hello, When I try to use PhotoEditor on an IOS device the app crashes and I get this error in xcode : Screenshot 2020-10-12 at 7 50 48 PM This is my code : item => { RNFetchBlob.config({ fileCache: true }) .fetch('GET', BASE_URL + '/Resource/' + item.uri) .then(res => { PhotoEditor.Edit({ path: res.path(), onDone: newPath =>console.log("newPath"), colors: ['red', 'black', 'cyan', 'green', 'yellow'], hiddenControls: ['crop', 'share', 'sticker'] }); }); } P.S I thought that its a path problem so I tried the moveFile solution using RNFS but its the same issue. I'am using react-native 0.61.5 if this can help. Anyone knows what could be the issue please ?

hamdigatri avatar Oct 12 '20 19:10 hamdigatri

+1 same issue

CuongNguyenLD avatar Nov 11 '20 08:11 CuongNguyenLD

I had exactly the same error. After debugging it turned out that the statement photoEditor.stickers = imageStickers is causing the error (see image). iOS-Crash-PhotoEditor

Fix: add the stickers to your target (see image)

iOS-Fix-PhotoEditor

ChrisConway avatar Apr 14 '21 22:04 ChrisConway