-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWelcomeRoutes.js
46 lines (43 loc) · 1.6 KB
/
WelcomeRoutes.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
35
36
37
38
39
40
41
42
43
44
45
46
import React from 'react';
import { createStackNavigator } from '@react-navigation/stack';
import { CardStyleInterpolators } from '@react-navigation/stack';
import { NavigationContainer } from '@react-navigation/native';
import Login from '../views/Login/Login';
import Welcome from '../components/Splash/Welcome';
import Signup from '../views/Signup/Signup';
import Tour from '../views/Tour/Tour';
import AppRoute from './AppRoutes';
import Profile from '../views/Profile/Profile';
import { StatusBar } from 'react-native';
const Stack = createStackNavigator();
const WelcomeRoutes = () => {
return (
<NavigationContainer>
<StatusBar barStyle="dark-content" animated={true} backgroundColor="#ecf0f1" />
<Stack.Navigator
shifting="true"
screenOptions={({ route, navigation }) => ({
headerShown: false,
gestureEnabled: true,
cardOverlayEnabled: false,
gestureDirection: 'horizontal',
cardStyleInterpolator: CardStyleInterpolators.forHorizontalIOS,
})}>
<Stack.Screen name="welcome" component={Welcome} />
<Stack.Screen name="login" component={Login} />
<Stack.Screen name="signup" component={Signup} />
<Stack.Screen
options={{
gestureEnabled: false,
}} name="tour" component={Tour} />
<Stack.Screen
options={{
gestureEnabled: false,
}} name="app-route" component={AppRoute} />
<Stack.Screen
name="profile" component={Profile} />
</Stack.Navigator>
</NavigationContainer>
);
};
export default WelcomeRoutes;