反应本机显示警告"Calling `getNode()` on the ref of an Animated component is no longer necessary. "



完整警告为"不再需要在动画组件的ref上调用getNode()。现在可以直接使用ref。此方法将在未来版本中删除。ReactNativeFiberHostComponent">

它显示了错误,尽管我的代码中没有使用getNode,但从这里我发现它来自反应导航中的SafeAreaview。有什么方法可以解决这个问题吗?

升级react原生安全区域视图库至>='.1.0'

相关内容

最新更新