• Natarfs

    作者您好,我按照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} />就不会报错。但是引用以及拼写我都检查过,没有问题,希望可以帮忙解决一下

    Natarfs发表于 2020/12/8 17:17:52
    • Natarfs

      此书已经过期,建议买出版时间最新的书籍

      Natarfs发表于 2020/12/11 10:35:29
  • //07162562110

    您的书只要是有代码的地方,都应该在网上提供对应的源码吧?您让付费买您的书的人还一个个手敲??用户体验太差了,以后遇到您这类人写的书,发现了直接退货。

    //07162562110发表于 2020/6/23 13:27:07
  • tennist

    大家好,本书配套有github地址。大家可以访问该地址查看最新更新。有问题也可以在github中提issue,谢谢。

    tennist发表于 2017/7/21 11:37:48
    • 19910730@sT

      在哪?

      19910730@sT发表于 2018/5/31 9:16:42
  • war1029

    我改了表情,标题和时间,还有一处在哪

    war1029发表于 2017/6/30 19:04:33
  • war1029

    请问第2版第七章(p209)的作业应该怎么修改?

    war1029发表于 2017/6/30 17:37:29
  • 1
  • 2