我一直在尝试在我的项目中使用“react-native-popup”,渲染弹出窗口时在红屏中出现以下错误。如果我重新加载,该消息将被视为警告,应用程序运行正常,但错误消息偶尔会出现。我想知道这是什么问题?
Trying to add a root view with an explicit id already set. React Native uses the id field to track react tags and will overwrite this field. If that is fine, explicitly overwrite the id field to View.NO_ID before calling addMeasuredRootView.
这是我在渲染函数中使用它的方式:
<Popup ref={popup => this.popup = popup }/>
最佳答案
关于javascript - React native,添加 Root View 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44710520/