Set spans on empty strings
Differential Revision: D2612574 fb-gh-sync-id: 17b93f42a773ea6239990c6b0bd9bf4f32f8b455
This commit is contained in:
parent
c5b990f65f
commit
5ed8c6732e
|
@ -105,7 +105,7 @@ public class ReactTextShadowNode extends LayoutShadowNode {
|
|||
((ReactTextShadowNode) child).markUpdateSeen();
|
||||
}
|
||||
int end = sb.length();
|
||||
if (end > start) {
|
||||
if (end >= start) {
|
||||
if (textCSSNode.mIsColorSet) {
|
||||
ops.add(new SetSpanOperation(start, end, new ForegroundColorSpan(textCSSNode.mColor)));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue