@@ -7,6 +7,8 @@ const customFonts = {
77 "SFPro-Light" : require ( "../assets/fonts/SF-Pro-Text-Light.otf" ) ,
88 "SFPro-Heavy" : require ( "../assets/fonts/SF-Pro-Text-Heavy.otf" ) ,
99 "SFPro-Bold" : require ( "../assets/fonts/SF-Pro-Text-Bold.otf" ) ,
10+ "SF-Pro-Display-ThinItalic" : require ( "../assets/fonts/SF-Pro-Display-ThinItalic.otf" ) ,
11+ "SFPro-Display-Bold" : require ( "../assets/fonts/SF-Pro-Display-Bold.otf" ) ,
1012}
1113
1214export const Heading = ( { children, align, override, color } ) => {
@@ -16,6 +18,13 @@ export const Heading = ({ children, align, override, color }) => {
1618 return < ActivityIndicator style = { { margin : 20 , marginTop : 30 } } animating = { true } color = { colors . white } size = "small" />
1719}
1820
21+ export const Italic = ( { children, align, override, color } ) => {
22+ const [ fontLoaded ] = useFonts ( customFonts )
23+
24+ if ( fontLoaded ) return < Text style = { [ fontStyles . italic , { textAlign : align || "left" , color : color || fontStyles . heading . color } , override ] } > { children } </ Text >
25+ return < ActivityIndicator style = { { margin : 20 , marginTop : 30 } } animating = { true } color = { colors . white } size = "small" />
26+ }
27+
1928export const Title = ( { children, align, override, color } ) => {
2029 const [ fontLoaded ] = useFonts ( customFonts )
2130
@@ -37,6 +46,13 @@ export const Body = ({ children, align, override, color }) => {
3746 else return < ActivityIndicator style = { { margin : 20 , marginTop : 30 } } animating = { true } color = { colors . white } size = "small" />
3847}
3948
49+ export const List = ( { children, align, override, color } ) => {
50+ const [ fontLoaded ] = useFonts ( customFonts )
51+
52+ if ( fontLoaded ) return < Text style = { [ fontStyles . list , { textAlign : align || "left" , color : color || fontStyles . body . color } , override ] } > • { children } </ Text >
53+ else return < ActivityIndicator style = { { margin : 20 , marginTop : 30 } } animating = { true } color = { colors . white } size = "small" />
54+ }
55+
4056export const DefaultText = ( { children, align, override, color } ) => {
4157 const [ fontLoaded ] = useFonts ( customFonts )
4258
@@ -47,9 +63,14 @@ export const DefaultText = ({ children, align, override, color }) => {
4763
4864export const fontStyles = StyleSheet . create ( {
4965 heading : {
66+ fontFamily : "SFPro-Display-Bold" ,
5067 color : colors . white ,
51- fontSize : 40 ,
52- marginBottom : 12
68+ fontSize : 48 ,
69+ } ,
70+ italic : {
71+ fontFamily : "SF-Pro-Display-ThinItalic" ,
72+ color : colors . white ,
73+ fontSize : 18 ,
5374 } ,
5475 title : {
5576 fontFamily : "SFPro-Heavy" ,
@@ -66,9 +87,15 @@ export const fontStyles = StyleSheet.create({
6687 body : {
6788 fontFamily : "SFPro-Light" ,
6889 color : colors . white ,
69- fontSize : 18 ,
90+ fontSize : 16 ,
91+ lineHeight : 24 ,
92+ marginBottom : 20 ,
93+ } ,
94+ list : {
95+ fontFamily : "SFPro-Light" ,
96+ color : colors . white ,
97+ fontSize : 16 ,
7098 lineHeight : 24 ,
71- marginBottom : 10 ,
7299 } ,
73100 default : {
74101 fontFamily : "SFPro-Light" ,
0 commit comments