npm i --save @bigin/ns-soft-keyboard
- Version: 2.0.8
- GitHub:
- NPM: https://www.npmjs.com/package/%40bigin%2Fns-soft-keyboard
- Downloads:
- Last Day: 0
- Last Week: 0
- Last Month: 0
Credit
This plugin is from nativescript-soft-keyboard of @liuy97. You can get the original plugin at https://github.com/liuy97/nativescript-soft-keyboard
We just upgrade to NS7 and add some tweaks to make it works.
NativeScript Soft Keyboard Height
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.
Installation
ns plugin add @bigin/ns-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