nativescript-soft-keyboard
by Yong Liu | v2.3.0
Detect soft keyboard Height
npm i --save nativescript-soft-keyboard

nativescript-soft-keyboard

It is a challenge to get height of soft keyboard in Android and IOS. Android has not provided a direct way to read its height. But Nativescript app sometimes needs this information to achieve a good user interface.

Breaking changes

[email protected] for [email protected]

[email protected] for Nativescript version < 7

Installation

tns plugin add nativescript-soft-keyboard

Usage

    registerSoftKeyboardCallback((h) => console.log(h))

API

function parameter Description
registerSoftKeyboardCallback callback register a callback for new height of soft keyboard

License

Apache License Version 2.0, January 2004

ns plugin add nativescript-soft-keyboard

License

Apache License Version 2.0