Fix TextInput text color not applying

Summary:
Setting the color for a TextInput with nodes was broken. The text color was
not being applied due to an optimization that prevented setting spans if
begin and end were the same (which is the case for an empty TextInput).
This patch depends on D2962643.

Differential Revision: D2962394
This commit is contained in:
Ahmed El-Helw
2016-02-24 14:21:48 -08:00
parent b4100ef246
commit 827989f572
2 changed files with 18 additions and 1 deletions

View File

@@ -140,6 +140,11 @@ public class RCTTextInput extends RCTVirtualText implements AndroidView, CSSNode
mPaddingChanged = false;
}
@Override
boolean shouldAllowEmptySpans() {
return true;
}
/**
* Returns a new CharSequence that includes all the text and styling information to create Layout.
*/