小编Bzx*_*aga的帖子

react-native-vector-icons/Feather Icon 总是“?”

早上好,我正在尝试使用库https://github.com/oblador/react-native-vector-icons#installation

import Icon from 'react-native-vector-icons/Feather';
Run Code Online (Sandbox Code Playgroud)

在我安装它并遵循安装的每一步之后

我尝试使用以下代码通过 expo 运行它:

function BottomTabNavigator1() {
  return (
    <Tabs.Navigator
        tabBarOptions={
            {
            activeTintColor: "#2F7C6E",
            inactiveTintColor: "#222222"
            }
        }
        apperance={
            {
                whenInactiveShow : "both"
            }
        }
    >

    <Tabs.Screen name="HomeScreen" component={HomeScreen}
    options={
        {
            tabBarIcon: ({ focused, color, size }) => (
                <Icon
                    name="Home"
                    size={size ? size : 12}
                    color={focused ? color : "#222222"}
                    focused={focused}
                    color={color}
                />
            )
        }
    }
    />
    <Tabs.Screen name="DefaultScreen" component={DefaultScreen}
    options={
        {
            tabBarIcon: ({ focused, color, size }) => (
                <Icon
                    name="Rocket"
                    size={size …
Run Code Online (Sandbox Code Playgroud)

reactjs react-native react-native-android expo

0
推荐指数
1
解决办法
539
查看次数