react native side menu drawer code example
Example 1: react native drawer navigation example
import * as React from 'react';
import { Button, View } from 'react-native';
import { createDrawerNavigator } from '@react-navigation/drawer';
import { NavigationContainer } from '@react-navigation/native';
function HomeScreen({ navigation }) {
return (
);
}
function NotificationsScreen({ navigation }) {
return (
);
}
const Drawer = createDrawerNavigator();
export default function App() {
return (
);
}
Example 2: react native side drawer
npm install react-native-side-drawer