UNPKG

react-native-windows

Version:
25 lines 1.08 kB
import { NativeEventEmitter } from 'react-native'; import { IHighContrastColors, IHighContrastChangedEvent } from './AppThemeTypes'; declare class AppThemeModule extends NativeEventEmitter { isAvailable: boolean; private _isHighContrast; private _highContrastColors; constructor(); get isHighContrast(): boolean; get currentHighContrastColors(): IHighContrastColors; } declare class MissingNativeAppThemeShim { isAvailable: boolean; isHighContrast: boolean; currentHighContrastColors: IHighContrastColors; addEventListener(): void; removeEventListener(): void; addListener(_eventType: string, _listener: (nativeEvent: IHighContrastChangedEvent) => void): any; removeAllListeners(): void; removeListener(_eventType: string, _listener: (nativeEvent: IHighContrastChangedEvent) => void): void; removeSubscription(): void; } export declare type AppTheme = AppThemeModule; export declare const AppTheme: AppThemeModule | MissingNativeAppThemeShim; export {}; //# sourceMappingURL=AppTheme.d.ts.map