From 538d66d661f8bc305324bf01c8d40ff3d5bcfa5d Mon Sep 17 00:00:00 2001 From: Brandon Fitzwater Date: Thu, 25 Aug 2022 18:26:56 -0400 Subject: [PATCH] Resolve misaligned text. --- src/Date/DatePickerInputWithoutModal.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Date/DatePickerInputWithoutModal.tsx b/src/Date/DatePickerInputWithoutModal.tsx index ef93bc74..605fdb58 100644 --- a/src/Date/DatePickerInputWithoutModal.tsx +++ b/src/Date/DatePickerInputWithoutModal.tsx @@ -58,7 +58,7 @@ function DatePickerInputWithoutModal( onChangeText={onChangeText} keyboardAppearance={theme.dark ? 'dark' : 'default'} error={!!error} - style={[styles.input, style]} + style={style} /> {inputButtons} {!!error ? ( @@ -95,9 +95,8 @@ function getLabel({ const styles = StyleSheet.create({ root: { - minWidth: 150, + flex: 1, flexGrow: 1, - justifyContent: 'center', }, helperTextContainer: { flexDirection: 'row', @@ -105,6 +104,5 @@ const styles = StyleSheet.create({ helperText: { flex: 1, }, - input: {}, }) export default React.forwardRef(DatePickerInputWithoutModal)