androidx bottom navigation bar code example
Example 1: create bottom navigation bar react native
Copyimport { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
const Tab = createBottomTabNavigator();
function MyTabs() { return ( <Tab.Navigator> <Tab.Screen name="Home" component={HomeScreen} /> <Tab.Screen name="Settings" component={SettingsScreen} /> </Tab.Navigator> );}
Example 2: bottom navigation bar dependency
compile 'com.android.support:design:25.0.0'