Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TextInput] Add autoGrow support #3209

Closed
satya164 opened this issue Oct 3, 2015 · 7 comments
Closed

[TextInput] Add autoGrow support #3209

satya164 opened this issue Oct 3, 2015 · 7 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@satya164
Copy link
Contributor

satya164 commented Oct 3, 2015

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.

@christopherdro
Copy link
Contributor

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

@satya164
Copy link
Contributor Author

satya164 commented Oct 3, 2015

Unfortunately, both seem to be iOS only :(

@christopherdro
Copy link
Contributor

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

@satya164
Copy link
Contributor Author

satya164 commented Oct 3, 2015

@christopherdro I was referring to both iOS and Android.

@mikearmstrong001
Copy link
Contributor

cc @andreicoman11

@brentvatne
Copy link
Collaborator

@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).

@satya164
Copy link
Contributor Author

@brentvatne Thanks. Done.

@facebook facebook locked as resolved and limited conversation to collaborators Jul 21, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

5 participants