How do I change the default size in the tab navigator of the icon <Tab.Navigator…
- User
How do I change the default size in the tab navigator of the icon
<Tab.Navigator screenOptions={{ tabBarShowLabel: false, headerShown: false, tabBarActiveTintColor: theme.colors.primary, tabBarInactiveTintColor: theme.colors.onBackground }}> {/* Food screen */} <Tab.Screen name="FoodScreen" component={FoodScreen} options={{ tabBarIcon: ({ focused, color, size }) => ( <Ionicons name={focused ? "fast-food" : "fast-food-outline"} size={size} color={color} />
- Assistant
To change the default size of the icon in the Tab Navigator, you need to specify the size in the
tabBarIconfunction instead of using thesizeprop provided by the function parameters. Here's how you can achieve this:javascript