// navigation/DrawerNavigator.js
import { createDrawerNavigator } from '@react-navigation/drawer';
import * as React from 'react';
import HomeScreen from '../screens/HomeScreen';
import LinksScreen from '../screens/LinksScreen';
const Drawer = createDrawerNavigator();
export default function DrawerNavigator() {
return (
<Drawer.Navigator>
<Drawer.Screen
name="Home"
component={HomeScreen}
/>
<Drawer.Screen
name="Links"
component={LinksScreen}
/>
</Drawer.Navigator>
);
}
view raw DrawerNavigator.js hosted with ❤ by GitHub