Skip to content

Commit

Permalink
Patch react-native to pick up the fix for facebook/react-native#19126
Browse files Browse the repository at this point in the history
Patch react-native to pick up the fix for facebook/react-native#19126 from facebook/react-native@5017b86
Will revert this patch once the fix lands in the Expo react-native fork.
  • Loading branch information
markyou committed Jun 30, 2018
1 parent 99a9f8e commit 7b14d67
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions patches/react-native+0.55.4.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
patch-package
new file mode 100644
Binary files /dev/null and b/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/.DS_Store differ
--- a/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactBaseTextShadowNode.java
+++ b/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactBaseTextShadowNode.java
@@ -119,7 +119,7 @@ public abstract class ReactBaseTextShadowNode extends LayoutShadowNode {
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,

0 comments on commit 7b14d67

Please sign in to comment.