-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
44 lines (36 loc) · 1.36 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
import React, { useState, useEffect } from 'react';
import { StyleSheet, Text, TouchableOpacity, View } from 'react-native';
import Graph from './components/graph'
import CollectionScreen from './components/collectionScreen';
import WelcomeScreen from './components/welcomeScreen';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import styles from './components/styles';
import InstructionScreen from './components/instructionScreen';
import TimeTest from './components/time';
import DownloadData from './components/downloadData';
export default function App() {
const Stack = createNativeStackNavigator();
return (
// <TimeTest></TimeTest>
// <CollectionScreen></CollectionScreen>
// <DownloadData></DownloadData>
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen
name="Home"
component={WelcomeScreen}
options={{headerStyle: {backgroundColor: "rgba(0,68,148,255)",}, headerTitle: (props) => <Text style={styles.headerStyle}>MocApp</Text> }}
/>
<Stack.Screen
name="Collection"
component={CollectionScreen}
/>
<Stack.Screen
name="Instructions"
component={InstructionScreen}
/>
</Stack.Navigator>
</NavigationContainer>
);
}