From 699749cb758a573d3d1f0cd74dedacae5cf9a7ae Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Mon, 18 Dec 2023 16:28:29 -0600 Subject: [PATCH] Set numberOfLines for Android text input (#2238) * Set numberOfLines for Android text input * Let's go with 4 --- src/view/com/composer/text-input/TextInput.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/view/com/composer/text-input/TextInput.tsx b/src/view/com/composer/text-input/TextInput.tsx index 13fe3a0b..7e39f6ae 100644 --- a/src/view/com/composer/text-input/TextInput.tsx +++ b/src/view/com/composer/text-input/TextInput.tsx @@ -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}