为什么图标没有垂直居中呢?
import React from 'react'
import { Tabs } from 'expo-router'
import AntDesign from '@expo/vector-icons/AntDesign'
const Layout = () => {
return (
<Tabs
screenOptions={{
tabBarShowLabel: false,
tabBarStyle: {
height: 60
}
}}
>
<Tabs.Screen
name="index"
options={{
title: 'Index',
tabBarIcon: ({ color }) => (
<AntDesign name="home" size={26} color={color} />
)
}}
/>
<Tabs.Screen
name="explore"
options={{
title: 'Explore',
tabBarIcon: ({ color }) => (
<AntDesign name="eyeo" size={26} color={color} />
)
}}
/>
<Tabs.Screen
name="profile"
options={{
title: 'Profile',
tabBarIcon: ({ color }) => (
<AntDesign name="user" size={26} color={color} />
)
}}
/>
</Tabs>
)
}
export default Layout
在web上反而是正常的