美文网首页
常见问题及解决办法

常见问题及解决办法

作者: lxyz22zp | 来源:发表于2018-03-02 10:53 被阅读76次
问题: Packager can't listen on port 8081
办法:
Most likely another process is already using this port
Run the following command to find out which process:
   lsof -i :8081 
Then, you can either shut down the other process:
   kill -9 <PID> 
or run packager on different port.
问题:undefined is not object (evaluating 'ViewPropTypes.style')
办法:
run
npm uninstall react-native-scrollable-tab-view
run
npm install react-native-scrollable-tab-view@0.6.0
run
npm uninstall react-native-vector-icons
delete ( not necessary, it will be deleted automatically)
"react-native-vector-icons": "XXX"" in file "package.json"
run
npm install react-native-vector-icons
run
react-native link react-native-vector-icons
run
react-native run-ios
问题:npm install react-native-vector-icons  安装时报错:registry error parsing json
办法:npm config set registry "http://registry.npmjs.org/"
问题:unrecognized font family 'lonicons'
办法:将项目里node_modules/react-native-vector-icons/fonts里的字体放入xcode工程里,重新运行即可
问题:Build failing after updating to RN 0.4 - Redefinition of RCTLogLevel #375
办法:
I fixed this issue like this
if 'react-native' version >=0.40 then we should update 'react-native-vector-icons' version to 4.0.
Update using the following command

npm install --save react-native-vector-icons@4.0

相关文章

  • 2018-05-24

    金正宝:刷卡常见问题,解决办法,注意事项⚠️ 金正宝:刷卡常见问题,解决办法,注意事项,...

  • 外行学python( 五 异常 )

    常见问题及解决办法 python支持中文的办法: #coding:utf-8 查看中文文档: http://www...

  • Git

    常见问题与具体解决办法 证书过期

  • 常见问题及解决办法

  • 村行垫付第3日

    本次我们将这边圈子里反馈的,关于河南以及安徽那几家村行垫付办理时,遇到的常见问题及解决办法做个汇总。 1、首先:...

  • IOS之XCode静态分析

    常见问题缺陷与解决办法 1.Returning 'self' while it is not set to the...

  • fetch使用的常见问题及解决办法

    文章是从#fetch使用的常见问题及解决办法复制过来的, 首先声明一下,本文不是要讲解fetch的具体用法,不清楚...

  • rsync常见问题及解决办法

    一.rsync常见问题及解决办法 在使用rsync中往往会报错误,接下来吾爱编程把常见的错误列举出来,遇到问题可以...

  • Mysql常见问题及解决办法

    基本操作错误日志:位于data文件夹下,文件名为 计算机名.err 和 mysql_error.log [1064...

  • Rails常见问题及解决办法

    No pg_config... 问题重现: 在bundle的时候出现gem包pg-0.18.4安装出错的情况,错误...

网友评论

      本文标题:常见问题及解决办法

      本文链接:https://www.haomeiwen.com/subject/aulgxftx.html