Skip to content
Advertisement

React Native Android Native Module Works Well on Debug but Doesn’t Work on Release

I’ve created an Android Native Module in my React Native App to get User Installed Apps List. it works well on Debug but doesn’t work on Release.

*Note : I’ve also tried to use a npm package called react-native-android-installed-apps, but it doesn’t work, so I decided to created a Native Module.

I don’t know what’s wrong that caused my Native Module works on Debug but doesn’t work on Release. It will be great and I’ll really appriciate it if anyone can point out to me what’s wrong.

Here’s my code:

JavaScript

Advertisement

Answer

I’ve fix it by adding some pro-guard rules for my Native Module

Advertisement