fangwei716 / 30-days-of-react-native

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

运行报错. #50

Open shaoting0730 opened 7 years ago

shaoting0730 commented 7 years ago

npm 启动到99%时,报错:

请问这是何故?

2017-06-12 3 16 57
charlesYun commented 7 years ago

@pheromone 我的错误和你一模一样,请问怎么解决的

shaoting0730 commented 7 years ago

无解 @caoyunxiao

mf168 commented 7 years ago

@pheromone 同问 。。。

bighanber commented 7 years ago

我是把node_modules\react-native-scrollable-tab-view\DefaultTabBar,ScrollableTabBar,index里面的ViewPropTypes改成了View.propTypes,不知道这样对不对

shaoting0730 commented 7 years ago

@bighanber 请问这样改可以运行吗?

bighanber commented 7 years ago

@pheromone 反正没报错了,但是里面的内容很奇怪

AlsaceGH commented 7 years ago

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 react-native-vector-icons@4.0 if you have any other questions, please use node v5.2.0 or higher version(nvm could perfectly resolve it). Enjoy it!

yatessss commented 7 years ago

@AlsaceGH 按上述步骤操作后 ,还提示:Unrecognized font family "ionicons"

参考:https://github.com/oblador/react-native-vector-icons#option-manually 在xcode工程中把字体拖到相应目录下~ ok~

PengJuWang commented 7 years ago

还是不能解决呀

DevaLee commented 7 years ago

@AlsaceGH it does not work

rzdong commented 7 years ago

I follow @AlsaceGH suggestion, and use "npm install react-native-scrollable-tab-view@0.6.3“ 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字体放在提示错误的地方。

emilyzfive commented 7 years ago

参照@yatessss的方案解决了,虽然会有warning,但是终于不报红了。。。