SIGN IN SIGN UP
facebook / react-native UNCLAIMED

A framework for building native applications using React

0 0 0 C++

Uncoditionally set isEnabled state based on the accessibility state (#54508)

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

Changelog: [Android][Fixed] - View.setEnabled() now properly reflects accessibilityState.disabled

## Summary

Fixed a bug in `BaseViewManager.java` where React Native views with `accessibilityState={{disabled: true}}` were not properly setting the native `enabled` state on Android.

## Problem

Previously, the `setViewState()` method in `BaseViewManager.java` only set `view.setEnabled(true)` when `disabled=false`, but never set `view.setEnabled(false)` when `disabled=true`. This caused Android views to remain in their default `enabled=true` state even when explicitly disabled via `accessibilityState`.

Reviewed By: javache

Differential Revision: D86770173

fbshipit-source-id: ccffaea0d93648b4098b3c16d6807cbe76966ff9
F
Fabrizio Cucci committed
6fbe284082aa603c44df5edba9d86f8519b7dbf0
Parent: 1c83c00
Committed by meta-codesync[bot] <215208954+meta-codesync[bot]@users.noreply.github.com> on 11/12/2025, 10:23:45 AM