fangwei716 / 30-days-of-react-native

30 days of React Native demos
6.82k stars 1.46k forks source link

Not compatible with RN 0.42 #42

Open g-enius opened 7 years ago

g-enius commented 7 years ago

Shows unrecognized font family 'lonicons' after npm install.

qiujiancn commented 7 years ago

lonicons can't install ,compile error.

qiujiancn commented 7 years ago

不要执行react-native-vector-icons更新和安装,否则编译报错。 直接将npm install后,将node_modules下react-native-vector-icons文件夹Font目录拖到project中,并且修改project setting的build location -> custom -> change workspace -> change Intermediates..

  1. Go to File -> Project settings
  2. Click the Advanced button
  3. Select "Custom" and select "Relative to Workspace" in the pull down
  4. Change "Build/Products" to "build/Build/Products”
  5. Change "Build/Products" to "build/Build/Products”
  6. click done, done 目前已完美跑起来了.....
qiujiancn commented 7 years ago

day3运行出错,不执行react-native link命令的话,react-native-vector-icons这个模块不会编译,有一个.a文件未导入。但是link后,react-native-vector-icons死活编译不过,google了好多一直没有解决,类似:redefinition of enumerator 'xxxx'的错误,有解决办法请告知一下,谢谢。

g-enius commented 7 years ago

非常感谢您的回答,我在Xcode中未找到custom->change workspace.... 以及 Go to File 这些设置。 我建议如果可以先剔除编译不过的day3, 然后将npm install之后 设置都设好之后上传一下。待问题都解决了,别人可以直接npm install/ link 就可以直接运行了 在去除那些node_modules。 个人意见,可能不正确,请包涵,非常感谢您做得工程,很多能供他人借鉴学习👍