【发布时间】:2021-04-07 18:25:22
【问题描述】:
我正在使用这个库:
https://www.npmjs.com/package/react-native-animated-nav-tab-bar
我写过这样的代码:
const Tabs = AnimatedTabBarNavigator();
function Tabbar1(props) {
return (
<Tabs.Navigator
tabBarOptions={{
activeBackgroundColor: "#ff00ff",
inactiveBackgroundColor: '#000000',
activeTintColor: '#ffffff',
inactiveTintColor: '#000000',
showIcon: true,
}}
>
<Tabs.Screen
name="Dashboard"
component={Dashboard}
/>
<Tabs.Screen
name="Services"
component={Services}
/>
<Tabs.Screen
name="Notification"
component={Notification}
/>
<Tabs.Screen
name="More"
component={More}
/>
</Tabs.Navigator>
);
}
export default withNavigation(Tabbar1)
但是 inactiveBackgroundColor 或 inactiveTintColor 在这里不起作用,
那么谁能帮我解决这个问题?
提前致谢。
【问题讨论】:
标签: android react-native tabbar