-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
30 lines (26 loc) · 1.02 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
import React, { Component } from 'react';
import { NavigationContainer, StackActions } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import LoginScreen from './src/loginScreen';
import SplashScreen from './src/splashScreen';
import MainScreen from './src/mainScreen';
import RegisterScreen from './src/registerScreen';
export default class App extends Component {
Stack = createNativeStackNavigator();
render() {
return (
<NavigationContainer>
<this.Stack.Navigator
screenOptions={{
headerShown: false
}}
initialRouteName="splashScreen">
<this.Stack.Screen name="splashScreen" component={SplashScreen} />
<this.Stack.Screen name="loginScreen" component={LoginScreen} />
<this.Stack.Screen name="registerScreen" component={RegisterScreen} />
<this.Stack.Screen name="mainScreen" component={MainScreen} />
</this.Stack.Navigator>
</NavigationContainer>
)
}
}