作者您好,我按照RN官网搭建的环境,配置项目,然后使用npx react-native run-android命令启动的。里面的index.js是程序入口但是不是应该编写的首页,第一个组件应该是APP,所以我将app.js当作您书中的index.js,在写3.2.1的代码时,始终报错 Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it’s defined in, or you might h**e mixed up default and named imports. Check the render method of App. 经过测试,我只要取消掉<N**igator
initalRoute={{name:'login'}}
configureScene={this.configureScene}
renderScene={this.renderScene} />就不会报错。但是引用以及拼写我都检查过,没有问题,希望可以帮忙解决一下
作者您好,我按照RN官网搭建的环境,配置项目,然后使用npx react-native run-android命令启动的。里面的index.js是程序入口但是不是应该编写的首页,第一个组件应该是APP,所以我将app.js当作您书中的index.js,在写3.2.1的代码时,始终报错
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it’s defined in, or you might h**e mixed up default and named imports.
Check the render method of
App
.经过测试,我只要取消掉<N**igator initalRoute={{name:'login'}} configureScene={this.configureScene} renderScene={this.renderScene} />就不会报错。但是引用以及拼写我都检查过,没有问题,希望可以帮忙解决一下
您的书只要是有代码的地方,都应该在网上提供对应的源码吧?您让付费买您的书的人还一个个手敲??用户体验太差了,以后遇到您这类人写的书,发现了直接退货。
大家好,本书配套有github地址。大家可以访问该地址查看最新更新。有问题也可以在github中提issue,谢谢。
我改了表情,标题和时间,还有一处在哪
请问第2版第七章(p209)的作业应该怎么修改?