Make FloatingTextInputLabels no longer than one line (#6411)

This commit is contained in:
Daniel Espino García 2022-06-24 12:14:29 +02:00 committed by GitHub
parent 7f9c653e2e
commit adfb90eb59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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>