My code
const CartContainer = () => {
const Tab = createMaterialTopTabNavigator();
return (
<Tab.Navigator
screenOptions={{
tabBarLabelStyle: { fontSize: 12 },
tabBarItemStyle: { width: 100 },
tabBarStyle: { backgroundColor: 'powderblue' },
}}
>
<Tab.Screen name="Medicine" component={MedicineCart} />
<Tab.Screen name="Lab" component={LabCart} />
</Tab.Navigator>
);
}
This is a simple top tab navigator everything's working fine , but the top tab going too much top as you can see in picture how to fix this?
