xxxxxxxxxx
Drawer.Screen . options={{title:habit.header, drawerItemStyle: {
borderLeftColor:"black", borderLeftWidth:5, borderRightColor:"red", borderRightWidth:5}}} />
xxxxxxxxxx
const Drawer = createDrawerNavigator();
function MyDrawer() {
return (
<Drawer.Navigator
useLegacyImplementation
screenOptions={{
drawerStyle: {
backgroundColor: 'red',
width: 240,
},
}}
>
<Drawer.Screen name="Feed" component={Feed} />
<Drawer.Screen name="Article" component={Article} />
</Drawer.Navigator>
);
}
function App() {
return (
<NavigationContainer>
<MyDrawer />
</NavigationContainer>
);
}
export default App;