diff --git a/src/Time/TimeInput.tsx b/src/Time/TimeInput.tsx index 29b017f1..30816d80 100644 --- a/src/Time/TimeInput.tsx +++ b/src/Time/TimeInput.tsx @@ -6,7 +6,7 @@ import { StyleSheet, Platform, } from 'react-native' -import { useTheme, TouchableRipple } from 'react-native-paper' +import { useTheme, TouchableRipple, MD2Theme } from 'react-native-paper' import Color from 'color' import { @@ -79,6 +79,9 @@ function TimeInput( // eslint-disable-next-line react-native/no-inline-styles { color, + fontFamily: theme?.isV3 + ? theme.fonts.titleMedium.fontFamily + : (theme as any as MD2Theme).fonts.medium.fontFamily, fontSize: inputFontSize, backgroundColor, borderRadius: theme.roundness * 2, diff --git a/src/__tests__/Time/__snapshots__/TimeInput.test.tsx.snap b/src/__tests__/Time/__snapshots__/TimeInput.test.tsx.snap index 90c9d03a..efe2a5fa 100644 --- a/src/__tests__/Time/__snapshots__/TimeInput.test.tsx.snap +++ b/src/__tests__/Time/__snapshots__/TimeInput.test.tsx.snap @@ -31,6 +31,7 @@ exports[`renders TimeInput 1`] = ` "borderRadius": 8, "borderWidth": 2, "color": "rgba(33, 0, 93, 1)", + "fontFamily": "System", "fontSize": 57, "height": 80, }, diff --git a/src/__tests__/Time/__snapshots__/TimeInputs.test.tsx.snap b/src/__tests__/Time/__snapshots__/TimeInputs.test.tsx.snap index f036adf4..4103a39f 100644 --- a/src/__tests__/Time/__snapshots__/TimeInputs.test.tsx.snap +++ b/src/__tests__/Time/__snapshots__/TimeInputs.test.tsx.snap @@ -54,6 +54,7 @@ exports[`renders TimeInputs 1`] = ` "borderRadius": 8, "borderWidth": 0, "color": "rgba(28, 27, 31, 1)", + "fontFamily": "System", "fontSize": 57, "height": 72, }, @@ -193,6 +194,7 @@ exports[`renders TimeInputs 1`] = ` "borderRadius": 8, "borderWidth": 0, "color": "rgba(28, 27, 31, 1)", + "fontFamily": "System", "fontSize": 57, "height": 72, }, diff --git a/src/__tests__/Time/__snapshots__/TimePicker.test.tsx.snap b/src/__tests__/Time/__snapshots__/TimePicker.test.tsx.snap index 2e75a80f..74424b5f 100644 --- a/src/__tests__/Time/__snapshots__/TimePicker.test.tsx.snap +++ b/src/__tests__/Time/__snapshots__/TimePicker.test.tsx.snap @@ -62,6 +62,7 @@ exports[`renders TimePicker 1`] = ` "borderRadius": 8, "borderWidth": 0, "color": "rgba(28, 27, 31, 1)", + "fontFamily": "System", "fontSize": 57, "height": 72, }, @@ -201,6 +202,7 @@ exports[`renders TimePicker 1`] = ` "borderRadius": 8, "borderWidth": 0, "color": "rgba(28, 27, 31, 1)", + "fontFamily": "System", "fontSize": 57, "height": 72, },