Font weight is not honored on iOS in RN 0.76 #47656
Labels
Platform: iOS
iOS applications.
Resolution: PR Submitted
A pull request with a fix has been provided.
Type: New Architecture
Issues and PRs related to new architecture (Fabric/Turbo Modules)
Description
After switching to new architecture, the text rendering does not seem to honor the
fontWeight
style as it used to do, on iOS.With RN 0.76 and new architecture enabled, it's not choosing the font based on the weight on iOS, even though that's the intended behavior according to the docs: https://reactnative.dev/docs/text-style-props#fontweight
Steps to reproduce
clone the project and run
yarn && npx pod-install && yarn ios
Or add this code to an existing RN 0.76 project with new architecture enabled:
React Native Version
0.76.2
Affected Platforms
Runtime - iOS
Areas
Fabric - The New Renderer
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/esbenvb/rn-font-weight-issue
Screenshots and Videos
✅ Without new architecture - working as expected
❌ With new architecture - not working as expected
The text was updated successfully, but these errors were encountered: