Skip to content

Commit d510996

Browse files
committed
fix(Android): get constants from IntConstants
updated in react native here -> https://github.com/facebook/react-native/pull/39630/files
1 parent 21811c0 commit d510996

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/android/app/src/main/java/com/reactnativenavigation/utils/ReactTypefaceUtils.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import com.facebook.react.bridge.ReadableArray;
2121
import com.facebook.react.views.text.ReactFontManager;
2222
import com.facebook.react.views.text.ReactTextShadowNode;
23+
import com.facebook.react.common.IntConstants;
2324
import java.util.ArrayList;
2425
import java.util.List;
2526

@@ -96,12 +97,12 @@ public static Typeface applyStyles(
9697

9798
int want = 0;
9899
if ((weight == Typeface.BOLD)
99-
|| ((oldStyle & Typeface.BOLD) != 0 && weight == ReactTextShadowNode.UNSET)) {
100+
|| ((oldStyle & Typeface.BOLD) != 0 && weight == IntConstants.UNSET)) {
100101
want |= Typeface.BOLD;
101102
}
102103

103104
if ((style == Typeface.ITALIC)
104-
|| ((oldStyle & Typeface.ITALIC) != 0 && style == ReactTextShadowNode.UNSET)) {
105+
|| ((oldStyle & Typeface.ITALIC) != 0 && style == IntConstants.UNSET)) {
105106
want |= Typeface.ITALIC;
106107
}
107108

0 commit comments

Comments
 (0)