I am new in React Expo and use detach Expo.
It is working perfectly fine for debug but when I build as release and download apk, I got this error. I am trying to use ssl pinning though (should not be any issue i guess).
2019-11-06 10:27:13.494 14739-14739/? E/AndroidRuntime: FATAL EXCEPTION: main Process: sg.edu.nus.timesheet, PID: 14739 java.lang.RuntimeException: Unable to create application host.exp.exponent.MainApplication: java.lang.RuntimeException: NativeModuleDepsProvider could not find object for class class host.exp.exponent.h at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6222) at android.app.ActivityThread.access$1200(ActivityThread.java:237) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1785) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:214) at android.app.ActivityThread.main(ActivityThread.java:7045) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965) Caused by: java.lang.RuntimeException: NativeModuleDepsProvider could not find object for class class host.exp.exponent.h at host.exp.exponent.o.a.a(NativeModuleDepsProvider.java:12) at host.exp.exponent.o.a.b(NativeModuleDepsProvider.java:2) at f.a.a.b.(Exponent.java:9) at f.a.a.b.a(Exponent.java:4) at host.exp.exponent.f.onCreate(ExpoApplication.java:9) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1154) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6217)
I also saw quite a lot of similar issue.
https://forums.expo.io/t/release-build-on-detached-project-doesnt-run/16777https://github.com/expo/expo/issues/3934https://github.com/expo/expo/issues/6082
How shall I do?