diff --git a/ReactAndroid/src/main/java/com/facebook/react/flat/RCTVirtualText.java b/ReactAndroid/src/main/java/com/facebook/react/flat/RCTVirtualText.java index 051fd52d7..9c8e2ca2e 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/flat/RCTVirtualText.java +++ b/ReactAndroid/src/main/java/com/facebook/react/flat/RCTVirtualText.java @@ -16,10 +16,11 @@ import android.text.Spannable; import android.text.SpannableStringBuilder; import android.text.TextUtils; +import com.facebook.csslayout.CSSNode; import com.facebook.react.bridge.ReadableMap; import com.facebook.react.uimanager.PixelUtil; -import com.facebook.react.uimanager.annotations.ReactProp; import com.facebook.react.uimanager.ViewProps; +import com.facebook.react.uimanager.annotations.ReactProp; /** * RCTVirtualText is a {@link FlatTextShadowNode} that can contain font styling information. @@ -38,6 +39,12 @@ import com.facebook.react.uimanager.ViewProps; private FontStylingSpan mFontStylingSpan = FontStylingSpan.INSTANCE; private ShadowStyleSpan mShadowStyleSpan = ShadowStyleSpan.INSTANCE; + @Override + public void addChildAt(CSSNode child, int i) { + super.addChildAt(child, i); + notifyChanged(true); + } + @Override protected void performCollectText(SpannableStringBuilder builder) { for (int i = 0, childCount = getChildCount(); i < childCount; ++i) {