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

Auto close app when click to image editor (Android)

Open sacyl-linhdo opened this issue 2 years ago • 10 comments

with all version - react-native 0.63

sacyl-linhdo avatar Nov 23 '21 01:11 sacyl-linhdo

Can you send me detailed error in Android Studio?

baronha avatar Dec 01 '21 03:12 baronha

same problem -v:reacat-native 0.64

LcBaixiao avatar Dec 03 '21 13:12 LcBaixiao

12-03 21:58:07.893 E/AndroidRuntime(25688): java.lang.AbstractMethodError: abstract method "void ja.burhanrashid52.photoeditor.OnPhotoEditorListener.onTouchSourceImage(android.view.MotionEvent)" 12-03 21:58:07.893 E/AndroidRuntime(25688): at ja.burhanrashid52.photoeditor.PhotoEditorImpl$2.onTouch(PhotoEditorImpl.java:86)

LcBaixiao avatar Dec 03 '21 14:12 LcBaixiao

Find this file in the NPM package :PhotoEditorActivity.kt Reference : node_modules@baronha\react-native-photo-editor\android\src\main\java\com\reactnativephotoeditor\activity\PhotoEditorActivity.kt

Comment this line :mPhotoEditor?.setOnPhotoEditorListener(this) =》 //mPhotoEditor?.setOnPhotoEditorListener(this) Other operations are not affected at present

LcBaixiao avatar Dec 05 '21 07:12 LcBaixiao

react-native 0.66 also auto close up every time on different android devices, ios working with no problem

magina671 avatar Apr 11 '22 04:04 magina671

I am also experiencing this issue. already added implementation 'com.burhanrashid52:photoeditor:2.0.0' to build.gradle

@baronha Can you upgrade the example to react-native 0.68.2?

kockok avatar May 29 '22 10:05 kockok

same issue with React-Native 68 and Photo-Editor 1.1.4

dmarselus avatar Jul 12 '22 17:07 dmarselus

same issue on react native 0.64

ydhnwb avatar Aug 05 '22 13:08 ydhnwb

any solution without edit source lib?

fukemy avatar Jan 09 '23 08:01 fukemy

Find this file in the NPM package :AndroidManifest.xml Reference : node_modules@baronha\react-native-photo-editor\android\src\main\AndroidManifest.xml

Add the highlighted line: android:theme="@style/Theme.AppCompat" image

isubhann avatar Feb 07 '23 09:02 isubhann