NativeScript / plugins

@nativescript plugins to help with your developments.
https://docs.nativescript.org/plugins/index.html
Apache License 2.0
190 stars 108 forks source link

NS8 RadListView problems #257

Open csivor opened 2 years ago

csivor commented 2 years ago

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\nodemodules\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" } }

jeremyr-corteva commented 2 years ago

@csivor did you ever find the root cause or a solution to this issue? We are facing the exact same problem, however it only seems to happen when we set android:launchMode="singleTask" on the com.tns.NativeScriptActivity activity in AndroidManifest.xml

csivor commented 2 years ago

@csivor did you ever find the root cause or a solution to this issue? We are facing the exact same problem, however it only seems to happen when we set android:launchMode="singleTask" on the com.tns.NativeScriptActivity activity in AndroidManifest.xml

Hi! unfortunately I didn't deal with it. I was hoping that someone else would write the solution 😅

zeejay09 commented 2 years ago

Mine is this:

System.err: An uncaught Exception occurred on "main" thread.
System.err: Calling js method onCreateViewHolder failed
System.err: TypeError: componentFactory.create is not a function

and code is from here https://github.com/ProgressNS/nativescript-ui-samples-angular/tree/master/listview/src/app/examples/item-layouts the listview-item-layouts-grid