Make FloatingTextInputLabels no longer than one line (#6411)
This commit is contained in:
parent
7f9c653e2e
commit
adfb90eb59
1 changed files with 2 additions and 0 deletions
|
|
@ -43,6 +43,7 @@ const getStyleSheet = makeStyleSheetFromTheme((theme: Theme) => ({
|
|||
fontFamily: 'OpenSans',
|
||||
fontSize: 16,
|
||||
zIndex: 10,
|
||||
maxWidth: 315,
|
||||
},
|
||||
smallLabel: {
|
||||
fontSize: 10,
|
||||
|
|
@ -242,6 +243,7 @@ const FloatingTextInput = forwardRef<FloatingTextInputRef, FloatingTextInputProp
|
|||
onPress={onAnimatedTextPress}
|
||||
style={[styles.label, labelTextStyle, textAnimatedTextStyle]}
|
||||
suppressHighlighting={true}
|
||||
numberOfLines={1}
|
||||
>
|
||||
{label}
|
||||
</Animated.Text>
|
||||
|
|
|
|||
Loading…
Reference in a new issue