-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
34 lines (30 loc) · 1.29 KB
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import React, { Component } from "react";
// import screen
import Mengsplash from "./src/auth/mengsplash";
import Login from './src/auth/login';
import Register from './src/auth/register';
import Userprofiles from "./src/auth/userprofiles";
import Dashboard from "./src/todo/dashboard";
import AddToDo from "./src/todo/addtodo";
import EditToDo from "./src/todo/edittodo";
// import library
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
const Stack = createNativeStackNavigator();
export default class App extends Component {
render() {
return (
<NavigationContainer>
<Stack.Navigator initialRouteName='Dashboard' screenOptions={{ headerShown: false }}>
{/* <Stack.Screen name="Mengsplash" component={Mengsplash} /> */}
{/* <Stack.Screen name="Login" component={Login} /> */}
{/* <Stack.Screen name="Register" component={Register} /> */}
<Stack.Screen name="Dashboard" component={Dashboard} />
<Stack.Screen name="AddToDo" component={AddToDo} />
<Stack.Screen name="EditToDo" component={EditToDo} />
<Stack.Screen name="Userprofiles" component={Userprofiles} />
</Stack.Navigator>
</NavigationContainer>
)
}
}