ionic-team / cordova-plugin-ionic-keyboard

Keyboard Plugin for Cordova
Other
192 stars 177 forks source link

setResizeMode not working after last update #124

Closed vadimwe closed 4 years ago

vadimwe commented 4 years ago

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

RaccoonFive commented 4 years ago

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

badger-ua commented 4 years ago
import { Keyboard, KeyboardResizeMode } from '@ionic-native/keyboard/ngx';

constructor(private keyboard: Keyboard) {
    this.keyboard.setResizeMode(KeyboardResizeMode.Native);
}
jcesarmobile commented 4 years ago

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.