-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
95 lines (83 loc) · 2.65 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow strict-local
*/
import 'react-native-gesture-handler';
import React from 'react';
// Navigation
import { NavigationContainer } from '@react-navigation/native';
import { createDrawerNavigator } from '@react-navigation/drawer';
// Components
import StateData from './screens/stateData';
import USData from './screens/USData'
const Drawer = createDrawerNavigator();
class App extends React.Component { //const App: () => React$Node = () => {
mode = 'dark';
theme = 'blue';
render() {
return (
<NavigationContainer>
<Drawer.Navigator initialRouteName="StateData">
<Drawer.Screen name="StateData" component={StateData} />
<Drawer.Screen name="USData" component={USData} />
</Drawer.Navigator>
</NavigationContainer>
);
}
};
export default App;
{/* <>
<StatusBar barStyle="dark-content" />
<SafeAreaView>
<ScrollView
contentInsetAdjustmentBehavior="automatic"
style={styles.scrollView}>
<Header />
{global.HermesInternal == null ? null : (
<View style={styles.engine}>
<Text style={styles.footer}>Engine: Hermes</Text>
</View>
)}
<View style={styles.body}>
<View style={styles.sectionContainer}>
<Text style={styles.sectionTitle}>Step One</Text>
<Text style={styles.sectionDescription}>
Edit <Text style={styles.highlight}>App.js</Text> to change this
screen and then come back to see your edits.
</Text>
</View>
<View style={styles.sectionContainer}>
<Text style={styles.sectionTitle}>See Your Changes</Text>
<Text style={styles.sectionDescription}>
<ReloadInstructions />
</Text>
</View>
<View style={styles.sectionContainer}>
<Text style={styles.sectionTitle}>Debug</Text>
<Text style={styles.sectionDescription}>
<DebugInstructions />
</Text>
</View>
<View style={styles.sectionContainer}>
<Text style={styles.sectionTitle}>Learn More</Text>
<Text style={styles.sectionDescription}>
Read the docs to discover what to do next:
</Text>
</View>
<LearnMoreLinks />
</View>
</ScrollView>
</SafeAreaView>
</> */}
// has recent info
// world cases deaths testing
// https://dj2taa9i652rf.cloudfront.net/
// TODO
// menu - select graph or data source
// price thingy for data summary
// graph height screen height minus the rest - take up the slack
// data squares: nationally and selected or highest state
// use context ? or redux instead of screenProps https://reactjs.org/docs/context.html