about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2023-12-18 16:28:29 -0600
committerGitHub <noreply@github.com>2023-12-18 14:28:29 -0800
commit699749cb758a573d3d1f0cd74dedacae5cf9a7ae (patch)
tree69f6b114c899c570e95dc09ff163494cd4a4c58a /src
parentd05658f2244d100392189d46ff2680df3b170606 (diff)
downloadvoidsky-699749cb758a573d3d1f0cd74dedacae5cf9a7ae.tar.zst
Set numberOfLines for Android text input (#2238)
* Set numberOfLines for Android text input

* Let's go with 4
Diffstat (limited to 'src')
-rw-r--r--src/view/com/composer/text-input/TextInput.tsx8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/view/com/composer/text-input/TextInput.tsx b/src/view/com/composer/text-input/TextInput.tsx
index 13fe3a0b3..7e39f6aed 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}
       </PasteInput>