forked from Ivasoft/mattermost-mobile
Make FloatingTextInputLabels no longer than one line (#6411)
This commit is contained in:
committed by
GitHub
parent
7f9c653e2e
commit
adfb90eb59
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user