mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
71461cb3dd
Summary: Part of https://github.com/facebook/react-native/issues/24875 ## Changelog [General] [Added] - Add TurboModule spec for AccessibilityManager Pull Request resolved: https://github.com/facebook/react-native/pull/24894 Reviewed By: rickhanlonii Differential Revision: D15471243 Pulled By: fkgozali fbshipit-source-id: 33f39d41d70da9380f29f2eb47e8c7682b323030
46 lines
1.4 KiB
JavaScript
46 lines
1.4 KiB
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @flow
|
|
* @format
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
import type {TurboModule} from 'RCTExport';
|
|
import * as TurboModuleRegistry from 'TurboModuleRegistry';
|
|
|
|
export interface Spec extends TurboModule {
|
|
+getCurrentBoldTextState: (
|
|
onSuccess: (isBoldTextEnabled: boolean) => void,
|
|
onError: (error: Object) => void,
|
|
) => void;
|
|
+getCurrentGrayscaleState: (
|
|
onSuccess: (isGrayscaleEnabled: boolean) => void,
|
|
onError: (error: Object) => void,
|
|
) => void;
|
|
+getCurrentInvertColorsState: (
|
|
onSuccess: (isInvertColorsEnabled: boolean) => void,
|
|
onError: (error: Object) => void,
|
|
) => void;
|
|
+getCurrentReduceMotionState: (
|
|
onSuccess: (isReduceMotionEnabled: boolean) => void,
|
|
onError: (error: Object) => void,
|
|
) => void;
|
|
+getCurrentReduceTransparencyState: (
|
|
onSuccess: (isReduceTransparencyEnabled: boolean) => void,
|
|
onError: (error: Object) => void,
|
|
) => void;
|
|
+getCurrentVoiceOverState: (
|
|
onSuccess: (isScreenReaderEnabled: boolean) => void,
|
|
onError: (error: Object) => void,
|
|
) => void;
|
|
+setAccessibilityFocus: (reactTag: number) => void;
|
|
+announceForAccessibility: (announcement: string) => void;
|
|
}
|
|
|
|
export default TurboModuleRegistry.get<Spec>('AccessibilityManager');
|