-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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] Some properties and styles seems invalid #294
Comments
Currently we don't throw or even warn if you provide unsupported react props, we'll only tell you if you provide the wrong type for a propType that is declared. It would be nice to fix this somehow :\
|
Thanks for explanation! In my understanding, what you mean is: If I use something that is unsupported now, react-native may not give out a warning or an error. But, both |
@sahrens , what @TooBug is referring to is the props docs: http://facebook.github.io/react-native/docs/textinput.html#props
|
Exactly! But has no effect. |
Those props should work - they are used in the Movies and UIExplorer example apps. I was specifically referring to multi line support - I don't think that is working in OSS yet and might break things if you try to use it. -Spencer
|
@wski looks like that prop is not being rendered...placeholderTextColor is not found in the render step. react-native/Libraries/Components/TextInput/TextInput.ios.js Lines 329 to 346 in f3cd27c
|
psych this doesn't fix it...closing PR :( |
Should textAlign: 'center' work on a TextInput? It doesn't seem to be working for me? |
@darylrowland I suspect anything listed under props here should work: http://facebook.github.io/react-native/docs/textinput.html#props but I'm not sure. If that is the case I hope more is added later. It would be super nice to be able to only have a bottom border on inputs instead of a solid full wrapped border. I assume there are things that can be styled outside of the normal props but i can't really find good documentation other than the error message you get when you put a bad style. |
I'm also experiencing placeholderTextColor having no effect. It doesn't work in any of the scenarios below:
Nothing seems to work. |
I'm seeing this too. |
It looks like |
This appears to be working now?.. (Tested in v0.7.1) One to close @brentvatne |
textAlignVertical doesn't work for me with
How can i fix? |
The
placeholderTextColor
andtextAlign
has no effect. Did I miss something?The text was updated successfully, but these errors were encountered: