-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
87 lines (81 loc) · 2.31 KB
/
App.tsx
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
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
*/
import React, { useState } from "react";
import {
Text,
View,
useColorScheme
} from "react-native";
import {
Colors
} from "react-native/Libraries/NewAppScreen";
function App(): React.JSX.Element {
const isDarkMode = useColorScheme() === "dark";
const [isShow, setIsShow] = useState(false);
const backgroundStyle = {
backgroundColor: Colors.lighter,
};
return (
<View style={{ alignItems: 'center', justifyContent: 'center', flex: 1, backgroundColor: Colors.lighter, }}>
<View style={{
width: '100%',
height: 30,
}}>
<View style={{
paddingHorizontal: 12,
marginHorizontal: 4,
alignItems: "center",
justifyContent: "center",
height: 26
}}>
<Text style={{
fontSize: 13,
fontWeight: "bold",
backgroundColor: 'red',
}}>已取件(粗体),未设置了numberOfLines * 121221</Text>
</View>
<View style={{
paddingHorizontal: 12,
marginHorizontal: 4,
alignItems: "center",
justifyContent: "center",
height: 26
}}>
<Text style={{
fontSize: 13,
fontWeight: "bold",
backgroundColor: 'red',
}} numberOfLines={1}>已取件(粗体),设置了numberOfLines=1 * 121221</Text>
</View>
<View style={{
paddingHorizontal: 12,
marginHorizontal: 4,
alignItems: "center",
justifyContent: "center",
height: 26
}}>
<Text style={{
fontSize: 13,
}}>已取件(正常) * 121221</Text>
</View>
<View style={{
paddingHorizontal: 12,
marginHorizontal: 4,
alignItems: "center",
justifyContent: "center",
height: 26
}}>
<Text style={{
fontSize: 13,
fontWeight: '200'
}}>已取件(细体) * 121221</Text>
</View>
</View>
</View>
);
}
export default App;