我按照文档中的说明正确导入了文件。我检查了package.json是否包含任何可能导致此错误的旧依赖性,但我没有找到它。我将在这里包括我的package.json依赖项。该应用程序也从app.js开始,而不是main或其他任何内容。我尝试删除@ expo / vector-icons,但是在构建android(expo build:android)'Missing @ expo / vector-icons时出现错误。问题仍然存在,我没有得到图标,而只有X符号。
"@expo/vector-icons": "^10.0.3",
"expo": "^33.0.0",
"expo-asset": "^5.0.1",
"expo-constants": "^5.0.1",
"expo-font": "^5.0.1",
"haversine": "1.1.1",
"lodash": "4.17.11",
"pretty-ms": "4.0.0",
"prop-types": "15.7.2",
"react": "16.8.3",
"react-native": "https://github.com/expo/react-native/archive/sdk-33.0.0.tar.gz",
"react-native-compress": "2.0.1",
"react-native-elements": "0.19.1",
"react-native-keyboard-aware-scroll-view": "0.8.0",
"react-native-vector-icons": "5.0.0",
"react-navigation": "^3.0.0",
"react-navigation-material-bottom-tabs": "0.1.2"