SIGN IN SIGN UP
facebook / react-native UNCLAIMED

A framework for building native applications using React

0 0 0 C++

Remove shouldSetEnabledBasedOnAccessibilityState feature flag (#55120)

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

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`

Reviewed By: javache

Differential Revision: D90384878

fbshipit-source-id: e367bd46e394685702524e3d7dc7f6f4c08ecbca
F
Fabrizio Cucci committed
fc66884d7350230f0b682b6d0394a922d5409196
Parent: 04bdebc
Committed by meta-codesync[bot] <215208954+meta-codesync[bot]@users.noreply.github.com> on 1/13/2026, 5:49:51 PM