<Drawer.Navigator
initialRouteName="Home"
openByDefault>
<Drawer.Screen name="Home" component={HomeScreen} />
<Drawer.Screen name="Notifications" component={NotificationsScreen} />
</Drawer.Navigator>
function MyDrawer() {
return (
<Drawer.Navigator
useLegacyImplementation screenOptions={{
drawerLabelStyle: {
color: "red",
fontSize: 25,
},
}}
>
<Drawer.Screen name="Feed" component={Feed} />
<Drawer.Screen name="Article" component={Article} />
</Drawer.Navigator>
);
}
function App() {
return (
<NavigationContainer>
<MyDrawer />
</NavigationContainer>
);
}
export default App;