NativeScript / NativeScript/plugins

NS8 RadListView problems

未关闭
#257 3 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
TypeScript
星标
206
派生
123
平均合并
2 天 1 小时
30 天内合并 PR
1

描述

Dear NS Group,

I upgraded my Angular project from NS6 to NS8 and i got some error with RadListView.

  1. When i set pullToRefresh="true" then i got this error:
    System.err: An uncaught Exception occurred on "main" thread.
    System.err: Calling js method onCreateView failed
    System.err: Error: java.lang.NoClassDefFoundError: com.telerik.widget.list.SwipeRefreshBehavior
    System.err:
    System.err: StackTrace:
    System.err: updatePullToRefreshBehavior(file: src\webpack:\libra-igazolo-app\node_modules\nativescript-ui-listview\index.android.js:1855:0)
    ...
  2. When i want to use scrollToIndex function then i got this error:
    this.radList.scrollToIndex is not a function

here is my package:

{
"name": "libra-igazolo-app",
"main": "./src/main.ts",
"version": "1.0.0",
"private": true,
"dependencies": {
"@angular/animations": "~13.2.0",
"@angular/common": "~13.2.0",
"@angular/compiler": "~13.2.0",
"@angular/core": "~13.2.0",
"@angular/forms": "~13.2.0",
"@angular/platform-browser": "~13.2.0",
"@angular/platform-browser-dynamic": "~13.2.0",
"@angular/router": "~13.2.0",
"@nativescript-community/ui-drawer": "^0.0.33",
"@nativescript/angular": "^13.0.0",
"@nativescript/background-http": "^6.0.0",
"@nativescript/camera": "^5.0.10",
"@nativescript/core": "~8.2.0",
"@nativescript/imagepicker": "^1.0.6",
"@nativescript/theme": "~3.0.2",
"@nstudio/nativescript-loading-indicator": "^3.0.4",
"atob": "^2.1.2",
"base-64": "^0.1.0",
"crypto-js": "^3.1.9-1",
"lodash": "^4.17.15",
"nativescript-barcodescanner": "^4.1.2",
"nativescript-ui-listview": "^10.0.2",
"q-encoding": "^1.0.0",
"reflect-metadata": "~0.1.12",
"rxjs": "~7.5.0",
"utf8": "^2.1.2",
"zone.js": "~0.11.5"
},
"devDependencies": {
"@angular-devkit/build-angular": "~13.2.0",
"@angular/compiler-cli": "~13.2.0",
"@nativescript/android": "~8.2.0",
"@nativescript/ios": "~8.2.0",
"@nativescript/types": "~8.2.0",
"@nativescript/webpack": "~5.0.6",
"@ngtools/webpack": "~13.2.0",
"tslint": "5.7.0",
"typescript": "~4.5.5"
}
}

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先,使用所报告依赖项中的 package 版本重现这两个 Android 错误,然后检查 nativescript-ui-listview's index.android.js 中的 updatePullToRefreshBehavior,以及 RadListView 的 scrollToIndex 入口点。完成的标准是确定这两个错误是否能在所述的 NativeScript 8 设置中重现,并记录已确认的修复方案或兼容性问题。

由索引模型根据 Issue 内容生成。

评估

技术栈
android, angular, typescript
领域
mobile-dev
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。