Skip to content

Commit

Permalink
Fix TextInput lag issue on android caused by react native
Browse files Browse the repository at this point in the history
  • Loading branch information
feiyingx committed Aug 29, 2018
1 parent 5322629 commit bfe1c6e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit bfe1c6e

Please sign in to comment.