ionic-team/cordova-plugin-ionic-keyboard

setResizeMode not working after last update

vadimwe opened this issue · 3 comments

Compile error:

error TS2345: Argument of type '"native"' is not assignable to parameter of type 'KeyboardResizeMode'.
[ng] 50 this.keyboard.setResizeMode('native');

Version 5.15.0
Angular 8.2.9

Changing it in the config.xml also doesn't seem to work anymore...

import { Keyboard, KeyboardResizeMode } from '@ionic-native/keyboard/ngx';

constructor(private keyboard: Keyboard) {
    this.keyboard.setResizeMode(KeyboardResizeMode.Native);
}

The types are not bundled with the plugin, so it's not really a plugin issue.
But you have to use it as yyesi explained.