-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
87 lines (75 loc) · 2.11 KB
/
App.tsx
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
import 'react-native-gesture-handler';
// Import React and Component
import * as React from 'react';
// Import Navigators from React Navigation
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
// Import Screens
import SplashScreen from './Screen/SplashScreen';
import LoginScreen from './Screen/LoginScreen';
import RegisterScreen from './Screen/RegisterScreen';
import PolicyUsers from './Screen/PolicyUsers';
import NavigationRoutes from './Screen/NavigationRoutes';
const Stack = createStackNavigator();
global.site_url = 'https://arome16.ru/apiapp/index.php';
global.data_user;
const Auth = () => {
return (
<Stack.Navigator initialRouteName="LoginScreen">
<Stack.Screen
name="LoginScreen"
component={LoginScreen}
options={{
animationEnabled: false, headerShown: false, cardStyle: { backgroundColor: '#ffffff' }
}}
/>
<Stack.Screen
name="RegisterScreen"
component={RegisterScreen}
options={{
headerShown: false, cardStyle: { backgroundColor: '#ffffff' }
}}
/>
<Stack.Screen
name="PolicyUsers"
component={PolicyUsers}
options={{
title: 'Политика конфиденциальности',
headerStyle: {
elevation: 0,
shadowOpacity: 0,
},
cardStyle: { backgroundColor: '#ffffff' }
}}
/>
</Stack.Navigator>
);
}
export default class App extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<NavigationContainer>
<Stack.Navigator initialRouteName="SplashScreen">
<Stack.Screen
name="SplashScreen"
component={SplashScreen}
options={{ animationEnabled: false, headerShown: false, cardStyle: { backgroundColor: '#333333' } }}
/>
<Stack.Screen
name="Auth"
component={Auth}
options={{ animationEnabled: false, headerShown: false }}
/>
<Stack.Screen
name="NavigationRoutes"
component={NavigationRoutes}
options={{ animationEnabled: false, headerShown: false }}
/>
</Stack.Navigator>
</NavigationContainer>
);
}
};