diff --git a/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js b/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js index 150635d8531aac..1217cad123c2fe 100644 --- a/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js +++ b/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js @@ -315,7 +315,7 @@ const AccessibilityInfo = { /** * Send a named accessibility event to a HostComponent. */ - sendAccessibilityEvent_unstable( + sendAccessibilityEvent( handle: ElementRef>, eventType: AccessibilityEventTypes, ) { diff --git a/Libraries/ReactNative/BridgelessUIManager.js b/Libraries/ReactNative/BridgelessUIManager.js index 0b959568a372de..3347b6a91bc47c 100644 --- a/Libraries/ReactNative/BridgelessUIManager.js +++ b/Libraries/ReactNative/BridgelessUIManager.js @@ -146,7 +146,7 @@ module.exports = { errorMessageForMethod('setLayoutAnimationEnabledExperimental'), ); }, - // Please use AccessibilityInfo.sendAccessibilityEvent_unstable instead. + // Please use AccessibilityInfo.sendAccessibilityEvent instead. // See SetAccessibilityFocusExample in AccessibilityExample.js for a migration example. sendAccessibilityEvent: (reactTag: ?number, eventType: number): void => console.error(errorMessageForMethod('sendAccessibilityEvent')), diff --git a/jest/setup.js b/jest/setup.js index ae32f2f02ebae1..8a53d7e8d6ece3 100644 --- a/jest/setup.js +++ b/jest/setup.js @@ -132,7 +132,7 @@ jest isScreenReaderEnabled: jest.fn(() => Promise.resolve(false)), removeEventListener: jest.fn(), setAccessibilityFocus: jest.fn(), - sendAccessibilityEvent_unstable: jest.fn(), + sendAccessibilityEvent: jest.fn(), getRecommendedTimeoutMillis: jest.fn(), }, })) diff --git a/packages/rn-tester/js/examples/Accessibility/AccessibilityExample.js b/packages/rn-tester/js/examples/Accessibility/AccessibilityExample.js index fb917d19dc3285..d4b14b5b78530d 100644 --- a/packages/rn-tester/js/examples/Accessibility/AccessibilityExample.js +++ b/packages/rn-tester/js/examples/Accessibility/AccessibilityExample.js @@ -956,7 +956,7 @@ function SetAccessibilityFocusExample(props: {}): React.Node { const onPress = () => { if (myRef && myRef.current) { - AccessibilityInfo.sendAccessibilityEvent_unstable(myRef.current, 'focus'); + AccessibilityInfo.sendAccessibilityEvent(myRef.current, 'focus'); } };