Set numberOfLines for Android text input (#2238)

* Set numberOfLines for Android text input

* Let's go with 4
This commit is contained in:
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

View file

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