react-native-multiple-image-picker
react-native-multiple-image-picker copied to clipboard
Android - app crashing in build created using ProGuard
We have built the app using expo.
On android, we have enabled ProGuard on release builds i.e. in app.json file, in plugin, we have the enableProguardInReleaseBuilds flag true for the expo-build-properties plugin.
So, when running the app in release mode i.e. npx expo run:android --variant release, the app is crashing. On checking the device logs using adb logcat, I get to see this error message E ReactNativeJS: - Make sure the class is not stripped. If you are using ProGuard, add @Keepand@DoNotStripannotations toMultipleImagePicker., js engine: hermes".
Please help in resolving this error.
Hello, you can try add this to your proguard-rules.pro:
-keep class com.margelo.nitro.multipleimagepicker.** { *; }