Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ type AccessibilityEventDefinitions = {
screenReaderChanged: [boolean],
};

type AccessibilityEventTypes = 'click' | 'focus' | 'viewHoverEnter';
type AccessibilityEventTypes =
| 'click'
| 'focus'
| 'viewHoverEnter'
| 'windowStateChange';

// Mapping of public event names to platform-specific event names.
const EventNames: Map<
Expand Down Expand Up @@ -438,6 +442,8 @@ const AccessibilityInfo = {
* Set accessibility focus to a React component.
*
* See https://reactnative.dev/docs/accessibilityinfo#setaccessibilityfocus
*
* @deprecated Use `sendAccessibilityEvent` with eventType `focus` instead.
*/
setAccessibilityFocus(reactTag: number): void {
legacySendAccessibilityEvent(reactTag, 'focus');
Expand Down
10 changes: 7 additions & 3 deletions packages/react-native/ReactNativeApi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<bffba0612c645ddb6166e1f5bb1187f2>>
* @generated SignedSource<<9504863966549f8efbbe4e13d7f74eaf>>
*
* This file was generated by scripts/js-api/build-types/index.js.
*/
Expand Down Expand Up @@ -1076,7 +1076,11 @@ declare type AccessibilityEventDefinitionsIOS = {
invertColorsChanged: [boolean]
reduceTransparencyChanged: [boolean]
}
declare type AccessibilityEventTypes = "click" | "focus" | "viewHoverEnter"
declare type AccessibilityEventTypes =
| "click"
| "focus"
| "viewHoverEnter"
| "windowStateChange"
declare type AccessibilityInfo = typeof AccessibilityInfo
declare type AccessibilityProps = Readonly<
AccessibilityPropsAndroid &
Expand Down Expand Up @@ -5954,7 +5958,7 @@ declare type WrapperComponentProvider = (
) => React.ComponentType<any>
export {
AccessibilityActionEvent, // f6181a2c
AccessibilityInfo, // ce4850e1
AccessibilityInfo, // 3e373fdc
AccessibilityProps, // 5a2836fc
AccessibilityRole, // f2f2e066
AccessibilityState, // b0c2b3f7
Expand Down
Loading