Skip to content

Conversation

@fabriziocucci
Copy link
Contributor

Summary:
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

Fabrizio Cucci and others added 3 commits January 12, 2026 04:49
Summary:
Changelog: [Android][Fixed] - Reset OnClickListener to null when recycling views to avoid accessibility tools finding views with incorrect state

 ---

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

The flag was introduced to reset `OnClickListener` to null when recycling views on Android to avoid accessibility tools finding views with incorrect state after recycling. This behavior is now the default.

Changes:
- Removed the flag definition from `ReactNativeFeatureFlags.config.js`
- Removed the conditional check in `BaseViewManager.java`, now `view.setOnClickListener(null)` is always called unconditionally
- Removed the override from `ReactNativeFeatureFlagsOverrides_Facebook_Android.kt`
- Regenerated all feature flag files via `js1 featureflags --update`

Differential Revision: D90384358
Summary:
Changelog: [Android][Fixed] - Properly set view.setEnabled() based on accessibilityState.disabled

 ---

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

The flag was introduced to fix `BaseViewManager` to properly set `view.setEnabled()` based on `accessibilityState.disabled`. Previously, the old behavior only set `enabled(true)` when `disabled=false`, but didn't set `enabled(false)` when `disabled=true`. The new behavior properly sets the enabled state for both cases. This behavior is now the default.

Changes:
- Removed the flag definition from `ReactNativeFeatureFlags.config.js`
- Removed the conditional check in `BaseViewManager.java`, now `view.setEnabled(!accessibilityState.getBoolean("disabled"))` is always called unconditionally
- Removed the override from `ReactNativeFeatureFlagsOverrides_Facebook_Android.kt`
- Regenerated all feature flag files via `js1 featureflags --update`

Differential Revision: D90384878
Summary:
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
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jan 12, 2026
@meta-codesync
Copy link

meta-codesync bot commented Jan 12, 2026

@fabriziocucci has exported this pull request. If you are a Meta employee, you can view the originating Diff in D90385104.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants