-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathWeather.js
More file actions
86 lines (79 loc) · 1.66 KB
/
Weather.js
File metadata and controls
86 lines (79 loc) · 1.66 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
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
import React from 'react';
import { View, Text, StyleSheet, StatusBar, TouchableOpacity } from 'react-native';
import { MaterialCommunityIcons, FontAwesome5, FontAwesome } from '@expo/vector-icons';
import { LinearGradient } from 'expo-linear-gradient';
const SideMenu = require('react-native-side-menu');
export function HomeScreen({navigation, route, temperature: temperature, condition: condition}){
return(
<View style={styles.container}>
<Text>May Weather</Text>
<TouchableOpacity style={styles.button} onPress={() => {
navigation.navigate('weatherScreen', {temperature: temperature, condition: condition})
}}
>
<Text style={{ color: '#FFF' }}>날씨정보</Text>
</TouchableOpacity>
</View>
);
}
/*
function Air(){
return(
<View>
<Text>미세먼지</Text>
</View>
);
}
*/
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
},
container2: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
},
temperature: {
fontSize: 40,
color: 'white',
marginTop: 10,
},
Title: {
color: 'white',
fontSize: 50,
fontWeight: '200',
marginBottom: 20,
textAlign: 'left',
},
SubTitle: {
color: 'white',
fontWeight: '800',
fontSize: 25,
textAlign: 'left',
},
TextContainer: {
paddingHorizontal: 20,
alignItems: 'flex-start',
},
button: {
marginTop: 32,
backgroundColor: '#23A6D9',
paddingVertical: 12,
width: 250,
borderRadius: 12,
alignItems: "center"
}
});
class Application extends React.Component {
render() {
const menu = <Menu navigator={navigator} />;
return (
<SideMenu menu={menu}>
<ContentView />
</SideMenu>
);
}
}