-
Notifications
You must be signed in to change notification settings - Fork 0
/
AppNavigator.js
28 lines (27 loc) · 1.08 KB
/
AppNavigator.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
/* eslint-disable no-unused-vars */
//import liraries
import React, {Component} from 'react';
import {initialScreen} from './screens/initialScreen';
import {writePhone} from './screens/writePhone';
import {writeName} from './screens/writeName';
import {writePasswords} from "./screens/writePasswords";
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import {NavigationContainer} from '@react-navigation/native';
import { mainMenu } from './screens/mainMenu';
const Stack = createNativeStackNavigator();
const AppNavigator = () => {
return (
<NavigationContainer>
<Stack.Navigator
screenOptions={{headerShown: false}}
initialRouteName={'INITIAL'}>
<Stack.Screen name="INITIAL" component={initialScreen} />
<Stack.Screen name="WPHONE" component={writePhone} />
<Stack.Screen name="WNAME" component={writeName} />
<Stack.Screen name="WPASS" component={writePasswords} />
<Stack.Screen name="MAINMENU" component={mainMenu} />
</Stack.Navigator>
</NavigationContainer>
);
};
export default AppNavigator;