-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathApp.js
71 lines (66 loc) · 2.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
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
import React from 'react';
import {StatusBar, LogBox} from 'react-native';
import {NavigationContainer} from '@react-navigation/native';
import {createNativeStackNavigator} from '@react-navigation/native-stack';
import Home from './components/Home';
import Search from './components/Search';
import Profile from './components/Profile';
import Settings from './components/Settings';
import Connection from './components/Connection';
import Subreddit from './components/Subreddit';
const Stack = createNativeStackNavigator();
function App() {
LogBox.ignoreLogs(['Warning: ...']);
LogBox.ignoreAllLogs();
global.Token = null;
global.Filter = 'top';
global.FilterIcon = 'grade';
global.SubRedditName = null;
return (
<NavigationContainer>
<StatusBar backgroundColor="#ffa31a" />
<Stack.Navigator initialRouteName="Redditech">
<Stack.Screen
name="Redditech"
component={Home}
options={{
title: 'Redditech',
headerTintColor: '#fff',
headerTitleStyle: {
fontWeight: 'bold',
},
headerStyle: {
backgroundColor: '#ffa31a',
},
}}
/>
<Stack.Screen
name="Profile"
component={Profile}
options={{
headerTintColor: '#fff',
headerTitleStyle: {
fontWeight: 'bold',
},
headerStyle: {backgroundColor: '#ffa31a'},
}}
/>
<Stack.Screen name="Search" component={Search} />
<Stack.Screen name="Settings" component={Settings} />
<Stack.Screen name="Connection" component={Connection} />
<Stack.Screen
name="Subreddit"
component={Subreddit}
options={{
headerTintColor: '#fff',
headerTitleStyle: {
fontWeight: 'bold',
},
headerStyle: {backgroundColor: '#ffa31a'},
}}
/>
</Stack.Navigator>
</NavigationContainer>
);
}
export default App;