From 24254cf0fd4bee22ca664337bf7391a5f8cbd832 Mon Sep 17 00:00:00 2001 From: Joey Pender Date: Thu, 12 May 2022 12:17:49 -0500 Subject: [PATCH 1/3] using KeyboardStyle --- keyboard/src/definitions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keyboard/src/definitions.ts b/keyboard/src/definitions.ts index 89a7ab516..51218dd98 100644 --- a/keyboard/src/definitions.ts +++ b/keyboard/src/definitions.ts @@ -28,7 +28,7 @@ declare module '@capacitor/cli' { * @since 1.0.0 * @example "dark" */ - style?: 'dark' | 'light'; + style?: KeyboardStyle; /** * There is an Android bug that prevents the keyboard from resizing the WebView From c5f7c9d0abd3888a0fed7578b450fe60fa68349d Mon Sep 17 00:00:00 2001 From: Joey Pender Date: Thu, 12 May 2022 12:54:39 -0500 Subject: [PATCH 2/3] Updating documentation --- keyboard/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/keyboard/README.md b/keyboard/README.md index f74134521..4f70a8fc6 100644 --- a/keyboard/README.md +++ b/keyboard/README.md @@ -41,7 +41,7 @@ On iOS, the keyboard can be configured with the following options: | Prop | Type | Description | Default | Since | | ------------------------ | --------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------- | ----- | | **`resize`** | KeyboardResize | Configure the way the app is resized when the Keyboard appears. Only available on iOS. | native | 1.0.0 | -| **`style`** | 'dark' \| 'light' | Override the keyboard style if your app doesn't support dark/light theme changes. If not set, the keyboard style will depend on the device appearance. Only available on iOS. | | 1.0.0 | +| **`style`** | KeyboardStyle | Override the keyboard style if your app doesn't support dark/light theme changes. If not set, the keyboard style will depend on the device appearance. Only available on iOS. | | 1.0.0 | | **`resizeOnFullScreen`** | boolean | There is an Android bug that prevents the keyboard from resizing the WebView when the app is in full screen (i.e. if StatusBar plugin is used to overlay the status bar). This setting, if set to true, add a workaround that resizes the WebView even when the app is in full screen. Only available for Android | | 1.1.0 | ### Examples @@ -53,7 +53,7 @@ In `capacitor.config.json`: "plugins": { "Keyboard": { "resize": "body", - "style": "dark", + "style": "DARK", "resizeOnFullScreen": true } } @@ -71,7 +71,7 @@ const config: CapacitorConfig = { plugins: { Keyboard: { resize: "body", - style: "dark", + style: "DARK", resizeOnFullScreen: true, }, }, From d82152f47121d6dfe9a41c9e1785f6a66e87f14e Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Fri, 13 May 2022 11:10:11 +0200 Subject: [PATCH 3/3] Update keyboard/src/definitions.ts --- keyboard/src/definitions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keyboard/src/definitions.ts b/keyboard/src/definitions.ts index 51218dd98..c160549c3 100644 --- a/keyboard/src/definitions.ts +++ b/keyboard/src/definitions.ts @@ -26,7 +26,7 @@ declare module '@capacitor/cli' { * Only available on iOS. * * @since 1.0.0 - * @example "dark" + * @example "DARK" */ style?: KeyboardStyle;