0

我已经为 android 和 ios 创建了我的第一个 react 本机应用程序,我目前只专注于 Anroid。我还创建了一个具有某些功能的反应原生示例库。

将此库集成到示例应用程序中并尝试运行它。我收到错误

E/ReactNativeJS: Maximum call stack size exceeded.
I/ReactNativeJS: 'Failed to print error: ', 'You attempted to set the key `file` with the value `undefined` on an object that is meant to be immutable and has been frozen.'
E/ReactNativeJNI: Got JS Exception: Maximum call stack size exceeded. (http://10.0.2.2:8081/index.delta?platform=android&dev=true&minify=false:2353)
E/ReactNativeJNI: Got JS Stack: isValidArgument@http://10.0.2.2:8081/index.delta?platform=android&dev=true&minify=false:2353:67

正如我所解释的,这只是一个带有 create 命令的简单项目,我刚刚从 npm 导入了库,这就是自动设置。

检查更多错误日志

unknown:ReactNative: Exception in native call from JS
com.facebook.react.devsupport.JSException: Maximum call stack size exceeded. (http://10.0.2.2:8081/index.delta?platform=android&dev=true&minify=false:2353)
        at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
        at android.os.Handler.handleCallback(Handler.java:790)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:29)
        at android.os.Looper.loop(Looper.java:164)
        at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:192)
        at java.lang.Thread.run(Thread.java:764)
Caused by: com.facebook.jni.CppException: Maximum call stack size exceeded. (http://10.0.2.2:8081/index.delta?platform=android&dev=true&minify=false:2353)

任何人都可以在这一点上帮助我,我是反应原生移动应用程序开发的新手。我无法解决这个问题。

请帮忙,提前谢谢你。

4

0 回答 0