react-native-boxes 1.3.29 → 1.3.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/Styles.tsx +9 -0
- package/src/Text.tsx +5 -3
package/package.json
CHANGED
package/src/Styles.tsx
CHANGED
|
@@ -112,6 +112,15 @@ export function createStyle(
|
|
|
112
112
|
marginTop: dimens.space.xl,
|
|
113
113
|
backgroundColor: colors.background,
|
|
114
114
|
},
|
|
115
|
+
Subtitle: {
|
|
116
|
+
fontWeight: '700'
|
|
117
|
+
},
|
|
118
|
+
Title: {
|
|
119
|
+
fontWeight: '700'
|
|
120
|
+
},
|
|
121
|
+
TitleText: {
|
|
122
|
+
fontWeight: '700'
|
|
123
|
+
},
|
|
115
124
|
center: {
|
|
116
125
|
alignContent: 'center',
|
|
117
126
|
justifyContent: 'center'
|
package/src/Text.tsx
CHANGED
|
@@ -34,6 +34,7 @@ export function Subtitle(props: TextProps) {
|
|
|
34
34
|
fontSize: theme.dimens.font.lg,
|
|
35
35
|
color: theme.colors.text
|
|
36
36
|
},
|
|
37
|
+
theme.styles.Subtitle,
|
|
37
38
|
props.style
|
|
38
39
|
]} />
|
|
39
40
|
)
|
|
@@ -48,6 +49,7 @@ export function Title(props: TextProps) {
|
|
|
48
49
|
fontSize: theme.dimens.font.xl,
|
|
49
50
|
color: theme.colors.heading
|
|
50
51
|
},
|
|
52
|
+
theme.styles.Title,
|
|
51
53
|
props.style
|
|
52
54
|
]} />
|
|
53
55
|
)
|
|
@@ -66,12 +68,12 @@ export function Caption(props: TextProps) {
|
|
|
66
68
|
)
|
|
67
69
|
}
|
|
68
70
|
|
|
71
|
+
|
|
69
72
|
export function TitleText(props: TextProps) {
|
|
73
|
+
const theme = useContext(ThemeContext)
|
|
70
74
|
return (
|
|
71
75
|
<TextView {...props} style={[
|
|
72
|
-
|
|
73
|
-
fontWeight: '700'
|
|
74
|
-
},
|
|
76
|
+
theme.styles.TitleText,
|
|
75
77
|
props.style
|
|
76
78
|
]} />
|
|
77
79
|
)
|