Skip to content

Commit

Permalink
docs: include new type property
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillzyusko committed Dec 9, 2024
1 parent 9f34d0b commit ac65238
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docs/docs/api/keyboard-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ keywords:

This library exposes 4 events which are available on all platforms:

- keyboardWillShow
- keyboardWillHide
- keyboardDidShow
- keyboardDidHide
- `keyboardWillShow` - emitted when the keyboard is about to appear.
- `keyboardWillHide` - emitted when the keyboard is about to disappear.
- `keyboardDidShow` - emitted when the keyboard has completed its animation and is fully visible on the screen.
- `keyboardDidHide` - emitted when the keyboard has completed its animation and is fully hidden.

## Event structure

Expand All @@ -31,6 +31,7 @@ type KeyboardEventData = {
duration: number; // duration of the animation
timestamp: number; // timestamp of the event from native thread
target: number; // tag of the focused TextInput
type: string; // `keyboardType` property from focused `TextInput`
};
```

Expand Down

0 comments on commit ac65238

Please sign in to comment.