Skip to content

Commit

Permalink
update AppTheme stub for non-windows (#2763)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahimberg committed Jul 12, 2019
1 parent e87bc2e commit 9195f6d
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions vnext/src/Libraries/AppTheme/AppTheme.ts
Expand Up @@ -5,21 +5,14 @@
*/
'use strict';

import {NativeEventEmitter} from 'react-native';
const MissingNativeEventEmitterShim = require('MissingNativeEventEmitterShim');
import {IHighContrastColors} from './AppThemeTypes';

class AppThemeModule extends NativeEventEmitter {
get currentTheme(): string {
return '';
}

get isHighContrast(): boolean {
return false;
}

get currentHighContrastColorValues(): IHighContrastColors {
return {} as IHighContrastColors;
}
class AppThemeModule extends MissingNativeEventEmitterShim {
public isAvailable = false;
public currentTheme = '';
public isHighContrast = false;
public currentHighContrastColors = {} as IHighContrastColors;
}

export const AppTheme = new AppThemeModule();
Expand Down

0 comments on commit 9195f6d

Please sign in to comment.