SIGN IN SIGN UP
facebook / react-native UNCLAIMED

A framework for building native applications using React

Remove shouldUseLinkRoleForPressableText feature flag (#55121)

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

Changelog: [Android][Fixed] - Set accessibilityRole to "link" for pressable Text components by default

 ---

This diff removes the `shouldUseLinkRoleForPressableText` feature flag since it has been tested in FB4A for a month with `defaultValue: true`.

The flag was introduced to automatically set `accessibilityRole="link"` for pressable Text components by default. This behavior is now the default.

Changes:
- Removed the flag definition from `ReactNativeFeatureFlags.config.js`
- Removed the conditional checks in `Text.js` (2 locations), now `shouldUseLinkRole` is computed directly without the feature flag
- Removed the override from `ReactNativeFeatureFlagsOverrides_Facebook.js`
- Updated tests in `Text-test.js` to remove flag mocking and only test the enabled behavior
- Regenerated all feature flag files via `js1 featureflags --update`

Reviewed By: javache

Differential Revision: D90385104

fbshipit-source-id: 2dc0e74209e75c954445434513fbba0f7a97f7af
F
Fabrizio Cucci committed
68e5b4ee9f9c5bc4b1b1d38595320054e5b54fd5
Parent: 92c3278
Committed by meta-codesync[bot] <215208954+meta-codesync[bot]@users.noreply.github.com> on 1/14/2026, 9:42:12 AM