rn-animated-tabbar
rn-animated-tabbar copied to clipboard
Not working
Hello, i am using the library like this:
const BottomTabsData = [
{
id: "Profile",
title: "Profile",
icon: <Icon name={"account"} size={20} />,
activeIcon: <Icon name={"account"} size={20} />,
},
{
id: "Dashboard",
title: "Dashboard",
icon: <Icon name={"account"} size={20} />,
activeIcon: <Icon name={"account"} size={20} />,
},
{
id: "Learning",
title: "Learning",
icon: <Icon name={"account"} size={20} />,
activeIcon: <Icon name={"account"} size={20} />,
},
{
id: "Downloads",
title: "Downloads",
icon: <Icon name={"account"} size={20} />,
activeIcon: <Icon name={"account"} size={20} />,
},
];
<Tab.Navigator
screenOptions={{
headerShown: false,
}}
tabBar={({ navigation, state, descriptors, insets }) => (
<BottomTabs
tabsData={BottomTabsData}
tabBarBackground="#513070"
textColor="#FFFFFF"
activeTabBackground="#FFFFFF"
navigationHandler={(screen) => {
navigation.navigate(screen);
}}
/>
)}
>