-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathApp.js
More file actions
56 lines (36 loc) · 1.46 KB
/
App.js
File metadata and controls
56 lines (36 loc) · 1.46 KB
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
import { useFonts } from 'expo-font';
import * as React from 'react';
import { useEffect, useState } from 'react';
import HomePage from './Screens/home_page';
import ConsumptionPage from './Screens/consumption_page';
import CuboidPage from './Screens/cuboid_page';
import AwardsPage from './Screens/awards_page';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import { FlatList, Text, View, Button, TextInput, Image, ImageBackground, TouchableOpacity, onPress, Dimensions, ScrollView } from 'react-native';
export default function App() {
const Stack = createStackNavigator();
const [loaded] = useFonts({
LatoThin: require('./assets/fonts/Lato-Thin.ttf'),
LatoLight: require('./assets/fonts/Lato-Light.ttf'),
LatoRegular: require('./assets/fonts/Lato-Regular.ttf'),
LatoBold: require('./assets/fonts/Lato-Bold.ttf'),
LatoBlack: require('./assets/fonts/Lato-Black.ttf'),
});
if (!loaded) {
return null;
}
return (
<NavigationContainer>
<Stack.Navigator
screenOptions={{
headerShown: false
}}>
<Stack.Screen name="DOMO" component={HomePage} />
<Stack.Screen name="Consumption" component={ConsumptionPage} />
<Stack.Screen name="Cuboid" component={CuboidPage}/>
<Stack.Screen name="Awards" component={AwardsPage}/>
</Stack.Navigator>
</NavigationContainer>
);
}