StudE-Frontend/App.tsx

35 lines
1.3 KiB
TypeScript
Raw Normal View History

import "react-native-gesture-handler";
import { NavigationContainer } from "@react-navigation/native";
import { createDrawerNavigator } from "@react-navigation/drawer";
2023-07-03 21:22:31 +08:00
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";
2023-07-03 23:19:36 +08:00
import Onboarding from "./src/routes/Onboarding/Onboarding";
const Drawer = createDrawerNavigator();
export default function App() {
return (
2023-07-03 21:22:31 +08:00
<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} />
2023-07-03 23:19:36 +08:00
<Drawer.Screen name="Onboarding" component={Onboarding} />
2023-07-03 21:22:31 +08:00
</Drawer.Navigator>
</NavigationContainer>
</Provider>
);
}