Files
react-native/packages
Rickard Zrinski c0e6523d0f Fix maxFontSizeMultiplier prop on Text and TextInput components in new architecture (#47614)
Summary:
The `maxFontSizeMultiplier` prop for `Text` and `TextInput` was not handled in Fabric / New Architecture as documented in https://github.com/facebook/react-native/issues/47499.

bypass-github-export-checks

[GENERAL] [FIXED] - Fix `maxFontSizeMultiplier` prop on `Text` and `TextInput` components in Fabric / New Architecture

Pull Request resolved: https://github.com/facebook/react-native/pull/47614

Test Plan:
I have not added any automated tests for this change but try to do so if requested. I have however added examples to RN Tester for both the Text and TextInput components, as well as compared the behaviour with Paper / Old Architecture. Both on version 0.76.

Noticed now I didn't do exactly the same steps in both videos, oops! Be aware that reapplying changes made in the Settings are currently half-broken on the new architecture, thus I'm restarting the app on Android and iOS. But this issue is unrelated to my changes. I've tested on main branch and it has the same issue.

Here are comparison videos between Paper and Fabric on iOS *after* I've made my fix.

| Paper  | Fabric |
| ------------- | ------------- |
| <video src="https://github.com/user-attachments/assets/f4fd009f-aa6d-41ab-92fa-8dcf1e351ba1" /> | <video src="https://github.com/user-attachments/assets/fda42cc6-34c2-42a7-a6e2-028e7c866075" /> |

| Paper  | Fabric |
| ------------- | ------------- |
| <video src="https://github.com/user-attachments/assets/59b59f7b-25d2-4b5b-a8e2-d2054cc6390b" /> | <video src="https://github.com/user-attachments/assets/72068566-8f2a-4463-874c-45a6f5b63b0d" /> |

Reviewed By: Abbondanzo

Differential Revision: D65953019

Pulled By: cipolleschi

fbshipit-source-id: 90c3c7e236229e9ad9bd346941fafe4af8a9d9fc
2025-02-05 14:32:46 +00:00
..
2025-01-09 10:47:05 +00:00
2025-01-09 10:47:05 +00:00
2025-01-09 10:47:05 +00:00
2025-01-09 10:47:05 +00:00
2025-01-09 10:47:05 +00:00
2025-01-09 10:47:05 +00:00
2025-01-09 10:47:05 +00:00
2025-01-09 10:47:05 +00:00
2025-01-09 10:47:05 +00:00
2025-01-09 10:47:05 +00:00
2025-01-09 10:47:05 +00:00
2025-01-09 10:47:05 +00:00
2025-01-09 10:47:05 +00:00
2025-01-09 10:47:05 +00:00
2025-01-09 10:47:05 +00:00
2025-01-09 10:47:05 +00:00
2025-01-09 10:47:05 +00:00
2025-01-09 10:47:05 +00:00
2025-01-09 10:47:05 +00:00
2025-01-09 10:47:05 +00:00