-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathFontTest.js
98 lines (93 loc) · 2.45 KB
/
FontTest.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
96
97
98
import React, { Component } from 'react';
import {
AppRegistry,
Text,
Button,
View,
ScrollView,
StyleSheet
} from 'react-native';
import { StackNavigator } from 'react-navigation';
class FontTest extends React.Component {
static navigationOptions = {
title: 'this is scrollview example',
};
render() {
var { params } = this.props.navigation.state;
return (
<View>
<Text>this is Font screen, Exmaple of Font</Text>
<Text style={styles.texttest}>Hello React Font = vincHand</Text>
<Text style={styles.texttestone}>Hello React Font = RobotoLight</Text>
<Text style={styles.fontthree}>Hello React Font = RobotoRegular</Text>
<Text style={styles.fontfour}>Hello React Font = RobotoThin</Text>
<Text style={styles.fontfive}>Hello React Font = RobotoBold</Text>
<Text style={styles.fontsix}>Hello React Font = RobotoMedium</Text>
<ScrollView>
</ScrollView>
</View>
);
}
}
FontTest.navigationOptions = {
title: 'FontTest Screen',
};
const styles = StyleSheet.create({
map: {
height: 400,
marginTop: 80
},
item: {
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'center',
padding: 30,
margin: 2,
borderColor: '#2a4944',
borderWidth: 1,
backgroundColor: '#d2f7f1'
},
texttest: {
fontFamily: "vincHand",
fontSize: 20,
textAlign: "center",
color: "#333333",
marginBottom: 5
},
texttestone: {
fontFamily: "RobotoLight",
fontSize: 20,
textAlign: "center",
color: "#333333",
marginBottom: 5
},
fontthree: {
fontFamily: "RobotoRegular",
fontSize: 20,
textAlign: "center",
color: "#333333",
marginBottom: 5
},
fontfour: {
fontFamily: "RobotoThin",
fontSize: 20,
textAlign: "center",
color: "#333333",
marginBottom: 5
},
fontfive: {
fontFamily: "RobotoBold",
fontSize: 20,
textAlign: "center",
color: "#333333",
marginBottom: 5
},
fontsix: {
fontFamily: "RobotoMedium",
fontSize: 20,
textAlign: "center",
color: "#333333",
marginBottom: 5
},
})
export default FontTest;