diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index dc4c6bc4f4..10670c010b 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -6265,18 +6265,18 @@ type AccessibilityChangeEventName = 'change' | 'announcementFinished'; */ export interface AccessibilityInfoStatic { /** - * Query whether a screen reader is currently enabled. + * Query whether a screen reader is currently enabled. * Returns a promise which resolves to a boolean. The result is true when a screen reader is enabled and false otherwise. */ fetch(): Promise; - + /** * Add an event handler. Supported events: - * - change: Fires when the state of the screen reader changes. - * The argument to the event handler is a boolean. + * - change: Fires when the state of the screen reader changes. + * The argument to the event handler is a boolean. * The boolean is true when a screen reader is enabled and false otherwise. - * - * - announcementFinished: iOS-only event. Fires when the screen reader has finished making an announcement. + * + * - announcementFinished: iOS-only event. Fires when the screen reader has finished making an announcement. * The argument to the event handler is a dictionary with these keys: * - announcement: The string announced by the screen reader. * - success: A boolean indicating whether the announcement was successfully made. @@ -6290,14 +6290,14 @@ export interface AccessibilityInfoStatic { /** * Set acessibility focus to a react component. - * + * * @platform ios */ setAccessibilityFocus(reactTag: number): void; /** * Post a string to be announced by the screen reader. - * + * * @platform ios */ announceFoAccessibility(announcement: string): void;