baronha / react-native-photo-editor

🌄 Photo editor using native modules for iOS and Android. Inherit from 2 available libraries, ZLImageEditor (iOS) and PhotoEditor (Android)
MIT License
405 stars 133 forks source link

Auto close app when click to image editor (Android) #8

Open sacyl-linhdo opened 2 years ago

sacyl-linhdo commented 2 years ago

with all version - react-native 0.63

baronha commented 2 years ago

Can you send me detailed error in Android Studio?

LcBaixiao commented 2 years ago

same problem -v:reacat-native 0.64

LcBaixiao commented 2 years ago

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 commented 2 years ago

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

magina671 commented 2 years ago

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

kockok commented 2 years ago

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?

dmarselus commented 2 years ago

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

ydhnwb commented 1 year ago

same issue on react native 0.64

fukemy commented 1 year ago

any solution without edit source lib?

isubhann commented 1 year ago

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