Coder Social home page Coder Social logo

oluwaseye / nativescript-keyboardshowing Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nathanaela/nativescript-keyboardshowing

0.0 1.0 0.0 1.92 MB

Find out via events when the keyboard changes visibility

License: Other

JavaScript 100.00%

nativescript-keyboardshowing's Introduction

npm npm npm

nativescript-keyboardShowing

A NativeScript plugin to deal knowing if the keyboard is showing or hiding.

License

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.

Donate Patreon

Sample Snapshot

Installation

tns plugin add nativescript-keyboardshowing

Usage

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');
};

You ask, how exactly does this help?

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.

You can add to any page you need it the following Function:

exports.onKeyboard = function(args) { }

args.showing = true | false
args.object = the current page

Additional Helper Method

var keyboard = require('nativescript-keyboardshowing');

keyboard.isShowing()

returns: true or false
var keyboard = require( "nativescript-keyboardshowing" );
console.log("keyboard is", keyboard.isShowing() ? "showing" : "hidden");

nativescript-keyboardshowing's People

Contributors

nathanaela avatar oluwaseye avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.