refactor(action-sheet): add values for ANDROID_THEMES to prevent errors in dev environments

This commit is contained in:
Ibby Hadeed 2017-07-11 10:04:10 -04:00
parent b9993c24f0
commit eff9bc376c
No known key found for this signature in database
GPG Key ID: 22EFE47A3DDBDB5C

View File

@ -99,13 +99,21 @@ export interface ActionSheetOptions {
@Injectable()
export class ActionSheet extends IonicNativePlugin {
@CordovaProperty
/**
* Convenience property to select an Android theme value
*/
ANDROID_THEMES: {
THEME_TRADITIONAL: number;
THEME_HOLO_DARK: number;
THEME_HOLO_LIGHT: number;
THEME_DEVICE_DEFAULT_DARK: number;
THEME_DEVICE_DEFAULT_LIGHT: number;
} = {
THEME_TRADITIONAL: 1,
THEME_HOLO_DARK: 2,
THEME_HOLO_LIGHT: 3,
THEME_DEVICE_DEFAULT_DARK: 4,
THEME_DEVICE_DEFAULT_LIGHT: 5
};
/**