A NativeScript plugin to deal knowing if the keyboard is showing or hiding.
This is released under the MIT License, meaning you are free to include this in any type of program -- However for entities that need a support contract, changes, enhancements and/or a commercial license please contact me at http://nativescript.tools.
I also do contract work; so if you have a module you want built for NativeScript (or any other software projects) feel free to contact me nathan@master-technology.com.
tns plugin add nativescript-keyboardshowing
To use the module you just require()
it:
var keyboard = require( "nativescript-keyboardshowing" );
console.log("keyboard is", keyboard.isShowing() ? "showing" : "hidden");
exports.onKeyboard = function (evt) {
console.log("Keyboard is now", evt.showing ? 'showing' : 'hidden');
};
Have you ever needed to know if the Soft-keyboard is showing? This plugin gives you that information via a event or a function call.
var keyboard = require('nativescript-keyboardshowing');
var keyboard = require( "nativescript-keyboardshowing" );
console.log("keyboard is", keyboard.isShowing() ? "showing" : "hidden");