From eff9bc376c28d69af361a7f0a6d9a400b294e2b6 Mon Sep 17 00:00:00 2001 From: Ibby Hadeed Date: Tue, 11 Jul 2017 10:04:10 -0400 Subject: [PATCH] refactor(action-sheet): add values for ANDROID_THEMES to prevent errors in dev environments --- src/@ionic-native/plugins/action-sheet/index.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/action-sheet/index.ts b/src/@ionic-native/plugins/action-sheet/index.ts index 810fae544..ea8e5f1d9 100644 --- a/src/@ionic-native/plugins/action-sheet/index.ts +++ b/src/@ionic-native/plugins/action-sheet/index.ts @@ -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 }; /**