Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// 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>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment