diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactBaseTextShadowNode.java b/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactBaseTextShadowNode.java index 075c5be23edf3c..f6a8885d12f204 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactBaseTextShadowNode.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactBaseTextShadowNode.java @@ -119,7 +119,7 @@ private static void buildSpannedFromShadowNode( start, end, new BackgroundColorSpan(textShadowNode.mBackgroundColor))); } if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { - if (textShadowNode.mLetterSpacing != Float.NaN) { + if (!Float.isNaN(textShadowNode.mLetterSpacing)) { ops.add(new SetSpanOperation( start, end,