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] alignText props does not work with multiline TextInput. #2641

Closed
f15gdsy opened this issue Sep 11, 2015 · 6 comments
Closed

[TextInput] alignText props does not work with multiline TextInput. #2641

f15gdsy opened this issue Sep 11, 2015 · 6 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@f15gdsy
Copy link

f15gdsy commented Sep 11, 2015

Hi,
when I use alignText props with non-multiline TextInput, it works fine.
But when I use it with multiline TextInput, it doesn't work.

Here is the screenshot.
The upper TextInput has multiline set to false, and textAlign set to 'right'.
The lower one doesn't work with textAlign set to 'right' or 'end'.

Screenshot

@brentvatne
Copy link
Collaborator

Hi there! Multiline TextInput is likely to be re-written to support auto-scaling based on content size: #1229
cc @lukasreichart let's make sure that the rewrite supports this.

@brentvatne brentvatne changed the title alignText props does not work with multiline TextInput. [TextInput] alignText props does not work with multiline TextInput. Sep 11, 2015
@lukasredev
Copy link

@f15gdsy @brentvatne Thanks for reporting. I'll look into this problem.

@brentvatne
Copy link
Collaborator

Thanks @lukasreichart we ❤️ you

@ms88privat
Copy link

@lukasreichart also "multiline" does not set the cursor correctly if an initial value is provided. You will start typing in front of the provided text. Tested on iOS only.

Thanks a lot

@ms88privat
Copy link

@dnbrwstr does this fix my mentioned issue from above too? (or was it fixed in some other version by now?)

pglotov pushed a commit to pglotov/react-native that referenced this issue Mar 15, 2016
Summary:
Fixes facebook#2641
Closes facebook#5801

Reviewed By: svcscm

Differential Revision: D2910644

Pulled By: nicklockwood

fb-gh-sync-id: 8f97daac09fd2bd4120344e28c239262dd013f85
@antonzy
Copy link

antonzy commented Jun 22, 2016

Looks like the placeholder text still ignores textAlign when multiline is true.
Tested on IOS, RN 0.26.3.

@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
This issue was closed.
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

6 participants