mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/52905 Similarly to [this PR](https://github.com/facebook/react-native/pull/51225), we do it for the Text component now: we don't set any non-default value props (most prominently, the accessibility ones) before passing this to native. This saves bandwidth and potentially improves the prop parsing time, which existing Fantom benchmarks do confirm. This is implemented behind a feature flag, which is false by default (will use it to run an experiment before rolling out). **NOTE:** This implementation forks the whole text component, as suggested by rubennorte, in order to isolate the changes and with the ultimate goal of removing the old version once the experiment is concluded. ## Changelog: [Internal] - Text no longer sets any default accessibility props, which should not result in visible changes in behaviour but may affect snapshot tests. Reviewed By: rubennorte Differential Revision: D79177652 fbshipit-source-id: a39430464fd5edec953b4c91be7ef9620ebd75ac