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
440 stars 138 forks source link

App is crashing on calling const result = await PhotoEditor.open(Options); #40

Open udaykiranchenna2 opened 1 year ago

udaykiranchenna2 commented 1 year ago

App is crashing on calling const result = await PhotoEditor.open(Options); But no errors are showing.

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

devansh-nigam commented 1 year ago

Thank you so much @isubhann, the issue was instantly fixed for me, can you please tell me how did you know this was going to fix this issue? I wanted to understand the root cause of this.