首页 > 解决方案 > react-native 生产 undefined 不是函数错误

问题描述

我开发了一个应用程序,并将其发布到 Google Play。过了一会儿,我开始获取生产错误报告,其中包含以下错误:

TypeError: s.generateNewNodeTag is not a function. (In 's.generateNewNodeTag()', 's.generateNewNodeTag' is an instance of Object)

 Fatal Exception: com.facebook.react.common.JavascriptException: TypeError: TypeError: c.API.disconnectAnimatedNodes is not a function. (In 'c.API.disconnectAnimatedNodes(this.__getNativeTag(),t.__getNativeTag())', 'c.API.disconnectAnimatedNodes' is an instance of Object)

看起来所有错误都来自 react-native 的核心,但我实际上无法理解为什么会发生这种错误。此错误来自极少数用户,我无法在本地重现它们。

RN 版本为 0.59.9

标签: react-native

解决方案


推荐阅读