Uh oh!
There was an error while loading. Please reload this page.
Fix StyleSheet 'textAlign' for AndroidTextInput,rename Android native props - #4364
Fix StyleSheet 'textAlign' for AndroidTextInput,rename Android native props#4364hyugit wants to merge 1 commit into
Conversation
hyugit
commented
Nov 26, 2015
- rename Android native prop 'textAlign' to 'textAlignAndroid'
- rename Android native prop 'textAlignVertical' to 'textAlignVerticalAndroid'
- add another 'setTextAlign' in ReactTextInputManager for StyleSheet prop
- add demo
…e prop - rename Android native prop 'textAlign' to 'textAlignAndroid' - rename Android native prop 'textAlignVertical' to 'textAlignVerticalAndroid' - add another 'setTextAlign' in ReactTextInputManager for StyleSheet prop - add demo
facebook-github-bot
commented
Nov 26, 2015
hyugit
commented
Nov 26, 2015
The reason behind renaming 'textAlign' to 'textAlignAndroid': StyleSheet is looking for a prop 'textAlign' of type 'String', while AndroidTextInput is looking for an Android native prop with the same name of type 'int' |
foghina
commented
Nov 26, 2015
kmagiera
commented
Nov 30, 2015
I don't understand why we need separate cc @foghina who may have more context on why the decision on not using |
hyugit
commented
Dec 1, 2015
Hi @kmagiera, thanks for your input. It seems that And with the changes in this PR, |
kmagiera
commented
Dec 1, 2015
I think it's fine to use To actually have any benefits from optimizing this sort of bridge traffic it would be better to think about some more generic solution that would allow us to perform this type of String<->int conversions that would be more transparent from the code perspective, so that we can optimize all those properties automatically. |
hyugit
commented
Dec 1, 2015
BTW, is it possible to overload |
kmagiera
commented
Dec 1, 2015
Yes, although need to add |
hyugit
commented
Dec 1, 2015
kmagiera
commented
Dec 2, 2015
Thanks so much, I understand this can now be closed in favor of #4481 |