相关疑难解决方法(0)

React Native-Expo:fontFamily'SimpleLineIcons'不是系统字体,并且尚未通过Font.loadAsync加载

所以我在Android设备/模拟器上收到此错误:

模拟器上的错误消息

另一方面,在iOS上,它可以很好地编译并且simple-line-icons可以正确显示。

我正在运行最新版本的Expo。

我的package.json:

{
  "name": "FamScore3",
  "version": "0.1.0",
  "private": true,
  "devDependencies": {
    "react-native-scripts": "1.14.0",
    "jest-expo": "^31.0.0",
    "react-test-renderer": "16.3.1"
  },
  "main": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
  "scripts": {
    "start": "react-native-scripts start",
    "eject": "react-native-scripts eject",
    "android": "react-native-scripts android",
    "ios": "react-native-scripts ios",
    "test": "jest"
  },
  "jest": {
    "preset": "jest-expo"
  },
  "dependencies": {
    "@firebase/auth": "^0.7.6",
    "@firebase/database": "^0.3.6",
    "axios": "^0.18.0",
    "metro-react-native-babel-preset": "^0.45.0",
    "expo": "^31.0.4",
    "firebase": "^5.5.1",
    "react": "16.5.0",
    "react-native": "https://github.com/expo/react-native/archive/sdk-31.0.1.tar.gz",
    "react-native-elements": "^0.19.1",
    "react-native-material-dropdown": "^0.11.1",
    "react-native-router-flux": "^4.0.1",
    "react-redux": "^5.0.7",
    "redux": "^4.0.0",
    "redux-thunk": "^2.3.0"
  }
}
Run Code Online (Sandbox Code Playgroud)

我的app.json:

{ …
Run Code Online (Sandbox Code Playgroud)

javascript react-native expo

3
推荐指数
4
解决办法
2823
查看次数

标签 统计

expo ×1

javascript ×1

react-native ×1