This repository has been archived by the owner on Aug 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
App.tsx
84 lines (79 loc) · 2.73 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
import * as React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import StartScreen from "./src/screens/StartScreen";
import ServersScreen, {IServer} from "./src/screens/ServersScreen";
import Colors from "./src/Colors";
const Stack = createStackNavigator();
const App = () => {
const servers: IServer[] = [
{
title: '🇩🇪 Germany 2',
address: 'adelaide.hideservers.net',
username: 'jermainee',
password: '9W9un9D4t2gojgGqHmMT2',
}, {
title: '🇩🇪 Germany 3',
address: 'adelaide.hideservers.net',
username: 'jermainee',
password: '9W9un9D4t2gojgGqHmMT2',
}, {
title: '🇩🇪 Germany 4',
address: 'adelaide.hideservers.net',
username: 'jermainee',
password: '9W9un9D4t2gojgGqHmMT2',
},
{
title: '🇳🇱 Netherlands 1',
address: 'adelaide.hideservers.net',
username: 'jermainee',
password: '9W9un9D4t2gojgGqHmMT2',
},
{
title: '🇳🇱 Netherlands 2',
address: 'adelaide.hideservers.net',
username: 'jermainee',
password: '9W9un9D4t2gojgGqHmMT2',
},
{
title: '🇳🇱 Netherlands 3',
address: 'adelaide.hideservers.net',
username: 'jermainee',
password: '9W9un9D4t2gojgGqHmMT2',
},
{
title: '🇳🇱 Netherlands 4',
address: 'adelaide.hideservers.net',
username: 'jermainee',
password: '9W9un9D4t2gojgGqHmMT2',
},
{
title: '🇺🇸 USA 1',
address: 'adelaide.hideservers.net',
username: 'jermainee',
password: '9W9un9D4t2gojgGqHmMT2',
},
{
title: '🇺🇸 USA 2',
address: 'adelaide.hideservers.net',
username: 'jermainee',
password: '9W9un9D4t2gojgGqHmMT2',
},
];
const options = {
headerStyle: {
backgroundColor: Colors.blue,
shadowColor: Colors.transparent,
},
headerTintColor: Colors.white,
};
return (
<NavigationContainer>
<Stack.Navigator initialRouteName="home">
<Stack.Screen name="Carl VPN" options={options} component={StartScreen} initialParams={{server: servers[0]}}/>
<Stack.Screen name="Servers" options={options} component={ServersScreen} initialParams={{servers: servers}}/>
</Stack.Navigator>
</NavigationContainer>
);
};
export default App;