@bigin/ns-soft-keyboard

Detect soft keyboard Height

Usage no npm install needed!

<script type="module">
  import biginNsSoftKeyboard from 'https://cdn.skypack.dev/@bigin/ns-soft-keyboard';
</script>

README

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