从 Google Play 商店下载时,我的 Expo 应用程序抛出 JavascriptException

My Expo App Throws JavascriptException when download from Google Play Store

当我在 android phone 上使用 apk 测试应用程序时,它工作正常,但是当我构建 .aab 并将其提交到 Play 商店并下载它时,它在闪屏后崩溃。几天来我一直在努力解决这个问题,但在这里找不到任何类似的问题。这是崩溃日志 Google Play 给我的。谢谢!

com.facebook.react.common.JavascriptException: Error: Requiring module "582", which threw an exception: TypeError: null is not an object (evaluating 'l.default.createNode'), stack:
h@2:1476
<unknown>@1379:1054
h@2:1585
<unknown>@1378:183
h@2:1585
<unknown>@1377:139
h@2:1585
<unknown>@1349:654
h@2:1585
<unknown>@1348:139
h@2:1585
<unknown>@1103:239
h@2:1585
<unknown>@1101:173
h@2:1585
<unknown>@730:171
h@2:1585
<unknown>@723:148
h@2:1585
<unknown>@469:854
h@2:1585
<unknown>@6:57
h@2:1585
d@2:958
global code@1613:3
at com.facebook.react.modules.core.ExceptionsManagerModule.reportException(ExceptionsManagerModule.java
  at java.lang.reflect.Method.invoke (Native Method)
  at com.facebook.react.bridge.JavaMethodWrapper.invoke (JavaMethodWrapper.java:372)
  at com.facebook.react.bridge.JavaModuleWrapper.invoke (JavaModuleWrapper.java:151)
  at com.facebook.react.bridge.queue.NativeRunnable.run (Native Method)
  at android.os.Handler.handleCallback (Handler.java:883)
  at android.os.Handler.dispatchMessage (Handler.java:100)
  at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage (MessageQueueThreadHandler.java:27)
  at android.os.Looper.loop (Looper.java:224)
  at com.facebook.react.bridge.queue.MessageQueueThreadImpl.run (MessageQueueThreadImpl.java:226)
  at java.lang.Thread.run (Thread.java:919)

您好,很抱歉回答晚了。我猜 React 18 导致了问题。我将 React 版本降级到 17.0.1 并且它有效:)