在NavigatorIOS的练习中遇到warning
-
在使用导航器跳转页面(https://reactnative.cn/docs/0.45/navigation.html#content) 的练习中,当使用NavigatorIOS时候遇到如下问题:
Myscene模块中的内容无法显示,显示Warning: Failed Prop type: The prop title is marked as required in MyScene, but its value is undefined.
求助。
-
你在MyScene的proptypes中指定了title属性是必填的(required)
所以要么你指定title属性,要么你就去掉对应的proptypes