Native-base 不适用于 react-native 0.57.1​​?

Native-base not working with react-native 0.57.1?

使用

我做了什么 :

1 : expo-cli 初始化测试

出现提示时,我选择创建一个空白项目。

2 : cd 测试

3 : npm install --save native-base

4:npm 安装 --save @expo/vector-icons

然后我在 App.js

中导入并使用原生文本组件

这是我在构建应用程序时遇到的错误:

无法从 "node_modules/native-base/dist/src/basic/IconNB.js"

解析“@expo/vector-icons/FontAwesome5”

有什么建议还是已知问题?我做错了吗?

降版本经常出现新发布组件的问题。先选择稳定的,然后在project

的过程中逐渐递增

使用 react-native link native-base 它将开始为您服务,无需降级。

它会起作用

再上一步! 在 cmd

中输入 react-native link

尤里卡!

我将 native base 降级到 2.8.2 版本并且它有效。

npm install --save native-base@2.8.2

在此处找到:https://github.com/oblador/react-native-vector-icons/issues/857

在@expo/vector-icons v8.1.0 中解决(某种程度上)。

https://github.com/expo/vector-icons/issues/58#issuecomment-450015936