Set numberOfLines for Android text input (#2238)

* Set numberOfLines for Android text input

* Let's go with 4
zio/stable
Eric Bailey 2023-12-18 16:28:29 -06:00 committed by GitHub
parent d05658f224
commit 699749cb75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -215,7 +215,13 @@ export const TextInput = forwardRef(function TextInputImpl(
autoFocus={true} autoFocus={true}
allowFontScaling allowFontScaling
multiline multiline
style={[pal.text, styles.textInput, styles.textInputFormatting]} numberOfLines={4}
style={[
pal.text,
styles.textInput,
styles.textInputFormatting,
{textAlignVertical: 'top'},
]}
{...props}> {...props}>
{textDecorated} {textDecorated}
</PasteInput> </PasteInput>