mirror of
https://github.com/lemeow125/StudE-Frontend.git
synced 2024-11-17 06:19:25 +08:00
32 lines
1.1 KiB
TypeScript
32 lines
1.1 KiB
TypeScript
import "react-native-gesture-handler";
|
|
import { NavigationContainer } from "@react-navigation/native";
|
|
import { createDrawerNavigator } from "@react-navigation/drawer";
|
|
import { Provider } from "react-redux";
|
|
import store from "./src/features/redux/Store/Store";
|
|
|
|
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();
|
|
|
|
export default function App() {
|
|
return (
|
|
<Provider store={store}>
|
|
<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>
|
|
</Provider>
|
|
);
|
|
}
|