2023-07-03 16:18:39 +08:00
|
|
|
import "react-native-gesture-handler";
|
|
|
|
import { NavigationContainer } from "@react-navigation/native";
|
|
|
|
import { createDrawerNavigator } from "@react-navigation/drawer";
|
|
|
|
|
|
|
|
import CustomDrawerContent from "./src/components/DrawerSettings/CustomDrawerContent";
|
|
|
|
import DrawerScreenSettings from "./src/components/DrawerSettings/DrawerScreenSettings";
|
|
|
|
|
|
|
|
import Home from "./src/routes/Home/Home";
|
|
|
|
import Login from "./src/routes/Login/Login";
|
|
|
|
import Register from "./src/routes/Register/Register";
|
|
|
|
|
|
|
|
const Drawer = createDrawerNavigator();
|
2023-07-03 16:18:27 +08:00
|
|
|
|
|
|
|
export default function App() {
|
|
|
|
return (
|
2023-07-03 16:18:39 +08:00
|
|
|
<NavigationContainer>
|
|
|
|
<Drawer.Navigator
|
|
|
|
initialRouteName="Home"
|
|
|
|
drawerContent={CustomDrawerContent}
|
|
|
|
screenOptions={DrawerScreenSettings}
|
|
|
|
>
|
|
|
|
<Drawer.Screen name="Home" component={Home} />
|
|
|
|
<Drawer.Screen name="Login" component={Login} />
|
|
|
|
<Drawer.Screen name="Register" component={Register} />
|
|
|
|
</Drawer.Navigator>
|
|
|
|
</NavigationContainer>
|
2023-07-03 16:18:27 +08:00
|
|
|
);
|
|
|
|
}
|