-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
44 lines (41 loc) · 1.47 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
/**
* The App component is just a shell to provide the Stack Navigator housing the rest of the
* app.
*/
import React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import HomeScreen from './src/components/HomeScreen';
import HelpScreen from './src/html/HelpScreen';
import WebScreen from './src/html/WebScreen';
import OtherScreen from './src/html/OtherScreen';
import TestScreen from './src/components/TestScreen';
import { clr } from './src/utils/colors';
const Stack = createStackNavigator();
const soptions = {
headerStyle: {
backgroundColor: clr.black,
},
headerTintColor: clr.white,
headerMode: 'screen',
headerTitleStyle: {
marginLeft: -28,
},
};
/**
* Shell for navigator skeleton. All conversion functionality and navigation are
* provided by the Home screen component.
*/
export default function App() {
return (
<NavigationContainer>
<Stack.Navigator initialRouteName="Home" >
<Stack.Screen name="Home" component={HomeScreen} options={soptions} />
<Stack.Screen name="Help" component={HelpScreen} options={soptions} />
<Stack.Screen name="Other useful apps" component={OtherScreen} options={soptions} />
<Stack.Screen name="Web resources" component={WebScreen} options={soptions} />
<Stack.Screen name="Test" component={TestScreen} options={soptions} />
</Stack.Navigator>
</NavigationContainer>
);
}