prscX/react-native-photo-editor

onDone and onCancel is not executed

Closed this issue · 0 comments

I have a code like this

				PhotoEditorAndroid.Edit({
					hiddenControls: ['save', 'share'],
					path: thePath.replace('file://', ''),
					onDone: () => {
						console.log('invoke onDone');
					},
					onCancel: () => {
						console.log('onCancel is executed');
					}
				});

But somehow onDone and onCancel is not executed.
thePath is "/storage/emulated/0/Android/data/com.myapp.me/cache/165994856974120220328_150045.jpg"