Skip to content

Material Bottom Tabs

Terminal window
npx expo install @react-navigation/material-bottom-tabs
npx expo install react-native-paper
import { createMaterialBottomTabNavigator } from "@react-navigation/material-bottom-tabs";
import MaterialCommunityIcons from "@expo/vector-icons/MaterialCommunityIcons";
const Tab = createMaterialBottomTabNavigator();
function App() {
return (
<NavigationContainer>
<Tab.Navigator
initialRouteName="Home"
activeColor="#e91e63"
inactiveColor="#3e2465"
barStyle={{ backgroundColor: "#fff" }}
>
<Tab.Screen
name="Home"
component={HomeScreen}
options={{
tabBarLabel: "Home",
tabBarIcon: ({ color }) => (
<MaterialCommunityIcons name="home" color={color} size={26} />
),
}}
/>
<Tab.Screen
name="Profile"
component={ProfileScreen}
options={{
tabBarLabel: "Profile",
tabBarIcon: ({ color }) => (
<MaterialCommunityIcons name="account" color={color} size={26} />
),
}}
/>
</Tab.Navigator>
</NavigationContainer>
);
}
  • Material Design compliant
  • Attractive animation and styling
  • Good integration with other Material components
  • Android-focused design
  • Less customization than regular bottom tabs
  • Use in apps following Material Design guidelines
  • Combine with other Material Design components
  • Customize colors to match your brand