Fixes cut off title in ios

This commit is contained in:
Viktor Sarström 2021-09-01 11:21:45 +02:00
parent 4e83bc91be
commit b78ec83970
2 changed files with 5 additions and 2 deletions

View File

@ -28,5 +28,5 @@ const styles = StyleSheet.create({
...fontSize.base,
fontWeight: '500',
},
subtitle: { ...fontSize.xs },
subtitle: { ...fontSize.xxs },
})

View File

@ -1,8 +1,11 @@
import { TextStyle } from 'react-native'
import { systemWeights } from 'react-native-typography'
type FontSize = 'xs' | 'sm' | 'base' | 'lg' | 'xl'
type FontSize = 'xxs' | 'xs' | 'sm' | 'base' | 'lg' | 'xl'
export const fontSize: Record<FontSize, TextStyle> = {
xxs: {
fontSize: 8,
},
xs: {
fontSize: 12,
},