React Native问题整理

React Native问题整理

注意文件名大小写,区分大小写。

Unrecognized font family ionicons

Close the running packager
Run react-native link react-native-vector-icons
Then run react-native start --reset-cache
Finally run react-native run-ios to restart the simulator

No bundle URL present

参考:这里
1. 清除编译缓存 rm -f ios/build
2. 重新安装各种module rm -rf node_modules/ && yarn
3. 杀死原来的Metro 进程

sudo lsof -i:8081
kill -9 进程号

追加新的库后,需要进行如下操作

This might be related to https://github.com/facebook/react-native/issues/4968
To resolve try the following:
  1. Clear watchman watches: `watchman watch-del-all`.
  2. Delete the `node_modules` folder: `rm -rf node_modules && npm install`.
  3. Reset Metro Bundler cache: `rm -rf /tmp/metro-bundler-cache-*` or `npm start -- --reset-cache`.  4. Remove haste cache: `rm -rf /tmp/haste-map-react-native-packager-*`.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值