Closed andrewm-mitchells closed 1 year ago
You ran ns plugin add nativescript-iqkeyboardmanager
?
Has it worked before?
@andrewm-mitchells try to add this to the references.d.ts
/// <reference path="./node_modules/@nativescript/iqkeyboardmanager/typings/objc!IQKeyboardManager.d.ts" />
You ran
ns plugin add nativescript-iqkeyboardmanager
?Has it worked before?
Added via npm i @nativescript/iqkeyboardmanager
.
It worked fine until I ran ns clean
today. Last time I ran it was maybe a week or two ago and it was fine at that time. I didn't update/install new plugin since then.
@andrewm-mitchells try to add this to the references.d.ts
/// <reference path="./node_modules/@nativescript/iqkeyboardmanager/typings/objc!IQKeyboardManager.d.ts" />
That seems to be working, at least I was able to build. Will be testing to see if there are any issues related to it but big thank you for now!
Thanks @andrewm-mitchells for providing the answer. The reason for this change is to adhere to the standard pattern of native typings usage throughout NativeScript at the moment.
Previously this plugin exported global types from it's package which was incorrect since the plugin itself only provides a few classes. The IQKeyboardManager
itself is a standard iOS Cocoapod so the plugin is published with the typings that you can include for usage if you'd like as you mentioned (adding to references.d.ts).
ns info
Hello, I ran
ns clean
today and then onns build ios --release
I got an error related toIQKeyboardManager
. Updated NS/NG and IQKeyboardManager plugin to latest but that didn't fix the issue.This is what I have in
references.d.ts
:I need this plugin to move from fields up when keyboard is visible on the screen. Below is my code to init KB manager.