A framework for building native applications using React
Mark setAccessibilityFocus as deprecated (#54968)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/54968 The `AccessibilityInfo.setAccessibilityFocus` API is unsupported in the new architecture and a perfectly valid alternative exists that *is* supported: `AccessibilityInfo.sendAccessibilityEvent`. This change marks the prior as deprecated with a code comment pointing to the new API and adds a missing type to the `AccessibilityEventTypes` type signature for `windowStateChange` Changelog: [General][Deprecated] - Deprecated `AccessibilityInfo.setAccessibilityFocus` in favor of `AccessibilityInfo.sendAccessibilityEvent` Reviewed By: mdvacca Differential Revision: D89729103 fbshipit-source-id: 4e55adb9a7ae7ba773e1e258359e67106488bee3
P
Peter Abbondanzo committed
36a0d9ef63b5ecb1cdf62d6d56b420f484bfa037
Parent: dfcb56d
Committed by meta-codesync[bot] <215208954+meta-codesync[bot]@users.noreply.github.com>
on 1/6/2026, 12:55:20 AM