微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Nativescript-Vue 7 @ nativescript / iqkeyboardmanager在iOS上不起作用

如何解决Nativescript-Vue 7 @ nativescript / iqkeyboardmanager在iOS上不起作用

我正在使用Nativescript-Vue https://nativescript-vue.org/

编写跨平台的移动应用程序

我在ios键盘上遇到了一些问题(键盘输入重叠),并且为了解决该问题,我尝试使用iOS键盘https://github.com/tjvantoll/nativescript-IQKeyboardManager的库

我在main.js中注册了Vue组件

Vue.registerElement("PrevIoUsNextView",() => require("@nativescript/iqkeyboardmanager").PrevIoUsNextView);

运行后应用程序因此错误而失败

2020-10-17 23:04:12.181181+0300 mobile[18756:477923] * Fatal JavaScript exception - application has been terminated. *
2020-10-17 23:04:12.181273+0300 mobile[18756:477923] NativeScript encountered a Fatal error: Uncaught ReferenceError: IQPrevIoUsNextView is not defined
 at 
 createNativeView(file:///app/vendor.js:2:1896867)
 at _setupUI(file:///app/vendor.js:2:117557)
 at (file:///app/vendor.js:2:117816)
 at eachChildView(file:///app/vendor.js:2:468834)
 at eachChildView(file:///app/vendor.js:2:707885)
 at eachChild(file:///app/vendor.js:2:219722)
 at _setupUI(file:///app/vendor.js:2:117800)
 at _addViewCore(file:///app/vendor.js:2:116677)
 at _addView(file:///app/vendor.js:2:116406)
 at UIViewControllerImpl.viewWillAppear(file:///app/vendor.js:2:710709)
 at UINavigationControllerImpl.pushViewControllerAnimated(file:///app/vendor.js:2:244230)
 at _navigateCore(file:///app/vendor.js:2:236714)
 at performNavigation(file:///app/vendor.js:2:227048)
 at _processNextNavigationEntry(file:///app/vendor.js:2:226905)
 at onLoaded(file:///app/vendor.js:2:223991)
 at (file:///app/vendor.js:2:114191)
 at callFunctionWithSuper(file:///app/vendor.js:2:114030)
 at callLoaded(file:///app/vendor.js:2:114138)
 at UINavigationControllerImpl.viewWillAppear(file:///app/vendor.js:2:242814)
(lldb)

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。