当我使用 Native Base 矢量图标时,它显示“RNVectorIcons 模块不可用”
我正在安装 Native Base 但没有单独安装 RN-Vector-Icons
你能找到这个错误吗?它对我或其他人真的有帮助吗
import { Navigation } from "react-native-navigation";
import Icon from 'react-native-vector-icons/AntDesign'; // for nativeBase getImageSource
const goAuth = () => {
Promise.all([
Icon.getImageSource('adduser', 15),
Icon.getImageSource('login', 15)
]).then(source => {
Navigation.setRoot({
root: {
id: 'authSccreen',
bottomTabs: {
children: [{
component: {
name: 'signIn',
options: {
text: 'signIn',
icon: source[0]
}
}
},
{
component: {
name: 'signUp',
options: {
text: 'signUp',
icon: source[1]
}
}
}],
}
}
})
})
}
export default goAuth
并检查此图像,它显示 GetImageSource 已安装在图标导入中