30-days-of-react-native
30-days-of-react-native copied to clipboard
运行报错.
npm 启动到99%时,报错:
请问这是何故?
@pheromone 我的错误和你一模一样,请问怎么解决的
无解 @caoyunxiao
@pheromone 同问 。。。
我是把node_modules\react-native-scrollable-tab-view\DefaultTabBar,ScrollableTabBar,index里面的ViewPropTypes改成了View.propTypes,不知道这样对不对
@bighanber 请问这样改可以运行吗?
@pheromone 反正没报错了,但是里面的内容很奇怪
hi, guys, flow these:
Step1
cd node_modules\react-native-scrollable-tab-view, change ViewPropTypes to
View.propTypes in DefaultTabBar, ScrollableTabBar and index
Step2
npm install --save [email protected]
if you have any other questions, please use node v5.2.0 or higher version(nvm could perfectly
resolve it).
Enjoy it!
@AlsaceGH 按上述步骤操作后 ,还提示:Unrecognized font family "ionicons"
参考:https://github.com/oblador/react-native-vector-icons#option-manually 在xcode工程中把字体拖到相应目录下~ ok~
还是不能解决呀
@AlsaceGH it does not work
I follow @AlsaceGH suggestion, and use "npm install [email protected]“ from 0.6.0. succeed.(android 6.0) this blog http://blog.csdn.net/xcx0215/article/details/72221602
按照AlsaceGH的步骤,改掉驼峰写法。再把插件版本升高。应该就可以了。如果期间出现不能发现某某字体,ttf结尾的。就把react-native-vector-icons这个包下的fonts字体放在提示错误的地方。
参照@yatessss的方案解决了,虽然会有warning,但是终于不报红了。。。