react-native icon indicating copy to clipboard operation
react-native copied to clipboard

[TextInput] Add autoGrow support

Open satya164 opened this issue 11 years ago • 7 comments

Auto-growing TextInput is useful as the input doesn't have to take too much space, and the user can still see all the text if he enters multiple lines, especially in chat applications.

Currently I can auto grow it by adding a invisible Text element with exact same content, measuring it's height on the onLayout event and setting height of the TextInput element. But it doesn't feel natural, as the height doesn't change instantly.

satya164 avatar Oct 03 '15 12:10 satya164

There's currently two PR's that are trying to address this. #3097 #1229

christopherdro avatar Oct 03 '15 15:10 christopherdro

Unfortunately, both seem to be iOS only :(

satya164 avatar Oct 03 '15 15:10 satya164

Sorry, didn't know you were referring to android. Could you possibly update the issue title to specify android?

christopherdro avatar Oct 03 '15 16:10 christopherdro

@christopherdro I was referring to both iOS and Android.

satya164 avatar Oct 03 '15 17:10 satya164

cc @andreicoman11

mikearmstrong001 avatar Oct 06 '15 06:10 mikearmstrong001

@satya164 - I created an issue for this on Product Pains! See it here. Go ahead and upvote it -- this is our new way of prioritizing non-trivial issues (details here).

brentvatne avatar Nov 18 '15 19:11 brentvatne

@brentvatne Thanks. Done.

satya164 avatar Nov 18 '15 19:11 satya164