A material-design themed tab bar on the bottom of the screen that lets you switch between different routes with animation. Routes are lazily initialized - their screen components are not mounted until they are first focused.
yarn add @react-navigation/material-bottom-tabs react-native-paper
npm install @react-navigation/native
yarn add react-native-reanimated
yarn add react-native-gesture-handler
yarn add react-native-screens
yarn add react-native-safe-area-context
yarn add @react-native-community/masked-view
pod install
import { createMaterialBottomTabNavigator } from '@react-navigation/material-bottom-tabs';
const Tab = createMaterialBottomTabNavigator();
function MyTabs() {
return (
<Tab.Navigator>
<Tab.Screen name="Home" component={HomeScreen} />
<Tab.Screen name="Settings" component={SettingsScreen} />
</Tab.Navigator>
);
}
"react": "16.13.1"
"react-native": "0.63.4"
"@react-navigation/drawer": "^5.11.5"
"android": "react-native run-android"
"ios": "react-native run-ios"
https://reactnavigation.org/docs/material-bottom-tab-navigator