You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was inspecting adb logs and found this crash, RN complains about Tried to access a JS module before the React instance was fully set up. Calls to ReactContext#getJSModule should only happen once initialize() has been called on your native module..
05-15 08:20:48.725 4058 4058 E AndroidRuntime: FATAL EXCEPTION: main
05-15 08:20:48.725 4058 4058 E AndroidRuntime: Process: com.screenmanager, PID: 4058
05-15 08:20:48.725 4058 4058 E AndroidRuntime: java.lang.RuntimeException: Error receiving broadcast Intent { act=android.intent.action.TIME_SET flg=0x25200010 } in com.reactnativemidnight.MidnightModule$midnightBroadcastReceiver$1@23916ad
05-15 08:20:48.725 4058 4058 E AndroidRuntime: at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0(LoadedApk.java:1401)
05-15 08:20:48.725 4058 4058 E AndroidRuntime: at android.app.-$$Lambda$LoadedApk$ReceiverDispatcher$Args$_BumDX2UKsnxLVrE6UJsJZkotuA.run(Unknown Source:2)
05-15 08:20:48.725 4058 4058 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:873)
05-15 08:20:48.725 4058 4058 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99)
05-15 08:20:48.725 4058 4058 E AndroidRuntime: at android.os.Looper.loop(Looper.java:193)
05-15 08:20:48.725 4058 4058 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6680)
05-15 08:20:48.725 4058 4058 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
05-15 08:20:48.725 4058 4058 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
05-15 08:20:48.725 4058 4058 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
05-15 08:20:48.725 4058 4058 E AndroidRuntime: Caused by: java.lang.RuntimeException: Tried to access a JS module before the React instance was fully set up. Calls to ReactContext#getJSModule should only happen once initialize() has been called on your native module.
05-15 08:20:48.725 4058 4058 E AndroidRuntime: at com.facebook.react.bridge.ReactContext.getJSModule(ReactContext.java:127)
05-15 08:20:48.725 4058 4058 E AndroidRuntime: at com.reactnativemidnight.MidnightModule.sendDayChangedEvent(MidnightModule.kt:28)
05-15 08:20:48.725 4058 4058 E AndroidRuntime: at com.reactnativemidnight.MidnightModule.access$sendDayChangedEvent(MidnightModule.kt:15)
05-15 08:20:48.725 4058 4058 E AndroidRuntime: at com.reactnativemidnight.MidnightModule$midnightBroadcastReceiver$1.onReceive(MidnightModule.kt:37)
05-15 08:20:48.725 4058 4058 E AndroidRuntime: at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0(LoadedApk.java:1391)
05-15 08:20:48.725 4058 4058 E AndroidRuntime: ... 8 more
Hi thanks for the report and sorry for the very late response. Are you still experiencing this issue? If you could provide a minimal repro case that would be very helpful in debugging the issue.
Hi,
I was inspecting adb logs and found this crash, RN complains about
Tried to access a JS module before the React instance was fully set up. Calls to ReactContext#getJSModule should only happen once initialize() has been called on your native module.
.Any idea what is wrong?
Versions:
The text was updated successfully, but these errors were encountered: