npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ionic-keyboard-assist

v4.0.2

Published

![](https://img.shields.io/badge/me-%40gesiel.com-brightgreen) ![](https://img.shields.io/npm/v/ionic-keyboard-assist?label=npm%40latest) ![](https://img.shields.io/bundlephobia/minzip/ionic-keyboard-assist/latest) ![](https://img.shields.io/npm/dm/ionic-

Downloads

63

Readme

ionic-keyboard-assist

This wizard corrects the bug when the keyboard overlaps/cover the screen and does not allow it to scroll. The user cannot see what is typing in the field. (Android 9 reported issue)

It is necessary "cordova-plugin-ionic-keyboard" plugin installed.

  • https://github.com/ionic-team/cordova-plugin-ionic-keyboard

Tested in versions:

Ionic: @^4

Keyboard Plugin: cordova-plugin-ionic-keyboard@^2.2.0

iOS: 13

Android: 9

Installation

To install the library:

npm install ionic-keyboard-assist --save

Add the service to your app.module.ts as a provider and set scrollPadding and scrollAssist to false:

import { IonicKeyboardAssist } from 'ionic-keyboard-assist';

@NgModule({
  ...
  IonicModule.forRoot({
    scrollPadding: false,
    scrollAssist: false
  }),
  ...
  providers: [ IonicKeyboardAssist ],
  ...
})
export class AppModule { }

Set KeyboardResize plugin preference to false on config.xml (for iOS): Read more

<preference name="KeyboardResize" value="false" />

Then, import and inject into the app.component.ts constructor and start the service:

import { IonicKeyboardAssist } from 'ionic-keyboard-assist';

constructor(private keyboardAssist: IonicKeyboardAssist ) { 
  this.keyboardAssist.init();
}

Preferences

scrollPadding

Boolean (true by default)

Possible values

  • true: Add a padding-bottom to the screen the same size as the keyboard.
  • false: Does not change the screen padding.

(Depending on the device, the cordova-plugin-ionic-keyboard calculates the wrong height)

scrollAssist

Boolean (true by default)

Possible values

  • true: Position the active/focused field in the center of the screen.
  • false: Does not give assistance to scroll.
Set the configs
...
  this.keyboardAssist.init({scrollPadding: true, scrollAssist: true});
...
or
...
  this.keyboardAssist.setOptions({scrollPadding: true, scrollAssist: true});
...