Fix some text is max bold

This commit is contained in:
Oleksii Bulenok
2026-07-30 12:46:27 +02:00
parent 614a5a3183
commit 6d1cb5ffd9
2 changed files with 23 additions and 0 deletions
+10
View File
@@ -79,6 +79,16 @@ the prebuilt AAR from Maven Central instead, where this hunk (like any ReactAndr
source change) has no effect - do not expect to see the fix in a local debug build unless
you prebuild with EXPO_PUBLIC_ENV=production or add the substitution block manually.
## RCTFontUtils.mm Patch - Custom font weights render as the heaviest face on New Arch
**TODO: Remove after bumping React Native to a release that contains facebook/react-native#57483**
(commit 918fb15bfe5f, on `main`; not in 0.86 and not yet released).
Backport of the upstream one-liner: use a real ternary so the numeric weight is returned instead of
the boolean. For a double, `(A != 0.0) ? A : B` is exactly equivalent to the original `A ?: B`.
PR: https://github.com/facebook/react-native/pull/57483
## RCTTextLayoutManager.mm Patch - Text overflows instead of wrapping on the last line
Issue: https://github.com/react/react-native/issues/53450#issuecomment-3298157830