App icon indicating copy to clipboard operation
App copied to clipboard

Make compose textarea automatically grow when you have entered a lot of text

Open shawnborton opened this issue 6 years ago • 5 comments

Problem: Textareas don't automatically grow when you have more text than the available amount of lines.

image

Solution: Much like Slack does, when you have a lot of text entered into a text area, let's make the textarea grow in size. We should be able to do this via JS?

shawnborton avatar Aug 12 '20 17:08 shawnborton

Ooh neat. I don't think people would puke on the prototype without this, but I think it's good, so I'm calling MEDIUM.

quinthar avatar Aug 12 '20 18:08 quinthar

More reading: https://github.com/rusfearuth/react-native-auto-grow-textinput

shawnborton avatar Aug 17 '20 21:08 shawnborton

I've got a local branch for this, the approach is the same as we do for web now: https://github.com/Expensify/Web-Expensify/blob/b2a0a2cc5414e11167211f44c598ca156b272b55/js/components/AutoResizeTextArea.jsx#L35-L34.

Jag96 avatar Aug 19 '20 18:08 Jag96

I'd love to bump this up from Low, in the desktop app you currently can't type more than two lines without text disappearing. It's 'forced' me to compose messages in gdoc then copy paste over, which isn't ideal.

mallenexpensify avatar Aug 21 '20 18:08 mallenexpensify

This is really hurting me daily. Increasing the importance, especially with DMs coming.

JmillsExpensify avatar Aug 26 '20 20:08 JmillsExpensify