ionic-team / cordova-plugin-ionic-keyboard

Keyboard Plugin for Cordova
Other
191 stars 177 forks source link

setResizeMode argument type missing #138

Open iconio opened 4 years ago

iconio commented 4 years ago

I'm trying to set the resize mode programatically but I get this message on the lint, which doesn't compile successfully.

Argument of type '"native"' is not assignable to parameter of type 'KeyboardResizeMode'.ts(2345)

Ionic:

   Ionic CLI                     : 5.4.13 (/Users/wd/.nvm/versions/node/v12.11.1/lib/node_modules/ionic)
   Ionic Framework               : @ionic/angular 4.11.4
   @angular-devkit/build-angular : 0.13.9
   @angular-devkit/schematics    : 7.2.4
   @angular/cli                  : 7.3.9
   @ionic/angular-toolkit        : 1.4.1

Cordova:

   Cordova CLI       : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms : android 8.1.0, browser 6.0.0, ios 5.0.1
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 3.1.2, (and 11 other plugins)

Utility:

   cordova-res                          : 0.8.1
   native-run (update available: 0.3.0) : 0.2.9

System:

   ios-sim : 8.0.2
   NodeJS  : v12.11.1 (/Users/wd/.nvm/versions/node/v12.11.1/bin/node)
   npm     : 6.13.1
   OS      : macOS Catalina
   Xcode   : Xcode 11.3 Build version 11C29
tobiasmuecksch commented 4 years ago

Try:

this.keyboard.setResizeMode(KeyboardResizeMode.Native);