Default Nodes text color to black

Summary:
Nodes' default text color was NaN, which ended up being white on some
devices.

Differential Revision: D3638348
This commit is contained in:
Ahmed El-Helw 2016-07-28 16:35:29 -07:00
Родитель 2d8cbd70bc
Коммит 45e626a887
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -11,6 +11,7 @@ package com.facebook.react.flat;
import javax.annotation.Nullable;
import android.graphics.Color;
import android.graphics.Typeface;
import android.text.TextPaint;
import android.text.style.MetricAffectingSpan;
@ -18,7 +19,7 @@ import android.text.style.MetricAffectingSpan;
/* package */ final class FontStylingSpan extends MetricAffectingSpan {
/* package */ static final FontStylingSpan INSTANCE = new FontStylingSpan(
Double.NaN /* mTextColor */,
Color.BLACK /* mTextColor */,
0 /* mBackgroundColor */,
-1 /* mFontSize */,
-1 /* mFontStyle */,