---
name: "offKeyboardWillShow"
mode: "kit"
versionRequirements:
  - { name: "BaseKit", version: "3.6.6" }
platform:
  - "iOS"
  - "Android"
async: true
title: "offKeyboardWillShow - Remove listener: keyboard show event"
---

## offKeyboardWillShow

> [VERSION] BaseKit >= 3.6.6

> [PLATFORM] iOS, Android

> ⚡ **Supports Promise** — Returns a Promise when success / fail / complete callbacks are omitted.

### Description

Keyboard shown

### Parameters

`(listener: Function)`

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `listener` | `(params: KeyboardBeanRes) => void` | Yes | - | Event listener callback function |

### Referenced Types

##### `interface` KeyboardBeanRes

| Property | Type | Since | Description |
| --- | --- | --- | --- |
| `height` | `number` | `3.6.1` | Keyboard height |
| `keyBoardArea` | `KeyBoardArea` | `3.32.6` | Keyboard pop-up position |

##### `interface` KeyBoardArea

| Property | Type | Since | Description |
| --- | --- | --- | --- |
| `top` | `number` | `3.32.6` | Keyboard pop-up top position |
| `bottom` | `number` | `3.32.6` | Keyboard pop-up bottom position |
| `left` | `number` | `3.32.6` | Keyboard left position |
| `right` | `number` | `3.32.6` | Keyboard right position |


### Examples

```tsx
const listener = function (res) { console.log(res) }
ty.onKeyboardWillShow(listener)
ty.offKeyboardWillShow(listener)
```
