-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHomeScreen.js
81 lines (67 loc) · 2.82 KB
/
HomeScreen.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
import React, { Component } from 'react';
import { YellowBox } from 'react-native';
import {StyleSheet,Text,View,ScrollView, TouchableOpacity,Button} from 'react-native';
import Icon from 'react-native-vector-icons/FontAwesome';
class HomeScreen extends React.Component{
constructor(props) {
super(props);
YellowBox.ignoreWarnings(
['Warning: isMounted(...) is deprecated', 'Module RCTImageLoader'
]);
}
render(){
return(
<ScrollView style ={styles.container}>
<View style = {styles.haien}>
<Text style = {styles.haienText}> 肺炎</Text>
</View>
<TouchableOpacity style = {{paddingLeft:135, paddingBottom: 35}} onPress = {() =>{ this.props.navigation.navigate('Scroll')}}>
<Text style={{color: 'rgb(52,62,62)', paddingTop: 20}}>・市中肺炎</Text>
</TouchableOpacity>
<TouchableOpacity style = {{paddingLeft:135, paddingBottom: 25}} onPress = {() =>{ this.props.navigation.navigate('SevereN')}}>
<Text style={{color: 'rgb(52,62,62)'}}>・医療介護関連肺炎{"\n"} (NHCAP)</Text>
</TouchableOpacity>
<TouchableOpacity style = {{paddingLeft:135, paddingBottom: 10}} onPress = {() =>{ this.props.navigation.navigate('SevereH')}}>
<Text style={{color: 'rgb(52,62,62)'}}>・院内肺炎{"\n"} (HAP)</Text>
</TouchableOpacity>
<View style = {styles.nyouro}>
<Text style = {styles.haienText}> 尿路感染症 </Text>
</View>
<TouchableOpacity style = {{paddingLeft:140, paddingBottom: 10}} onPress = {() =>{ this.props.navigation.navigate('Different')}}>
<Text >・尿路感染症</Text>
</TouchableOpacity>
</ScrollView>
);
}
}
const styles = StyleSheet.create({
container: {
backgroundColor: 'rgb(250,250,240)',
height: 1000,
},
haien: {
backgroundColor: 'rgb(130,200,143)',
alignSelf: 'center',
padding:14,
borderRadius: 4,
width: 250,
marginTop:80,
marginBottom: 30
},
haienText: {
color: '#fff',
textAlign: 'center',
fontWeight: 'bold',
paddingTop: 0
},
nyouro: {
backgroundColor: 'rgb(130,200,143)',
alignSelf: 'center',
padding:14,
borderRadius: 4,
width: 250,
marginTop:60,
marginBottom: 50
},
})
export default HomeScreen;