Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Commit

Permalink
Merge pull request #49 from Akylas/radlistview
Browse files Browse the repository at this point in the history
radlistview support
  • Loading branch information
bradmartin authored Nov 15, 2018
2 parents e36e8f1 + c5607f2 commit e5884bb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,11 @@
"devDependencies": {
"husky": "^0.14.3",
"lint-staged": "^7.0.5",
"nativescript-ui-listview": "^3.8.0",
"prettier": "^1.12.1",
"rimraf": "^2.5.0",
"tns-core-modules": "^4.0.0",
"tns-platform-declarations": "^4.0.0",
"rimraf": "^2.5.0",
"tslint": "~5.10.0",
"typescript": "~2.8.3"
}
Expand Down
4 changes: 4 additions & 0 deletions src/pulltorefresh.ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ export class PullToRefresh extends PullToRefreshBase {
this.content.ios.scrollView.alwaysBounceVertical = true;

this.content.ios.scrollView.addSubview(this.refreshControl);
} else if (this.content.ios instanceof TKListView) {
// ensure that we can trigger the refresh, even if the content is not large enough
this.content.ios.collectionView.alwaysBounceVertical = true;
this.content.ios.collectionView.addSubview(this.refreshControl);
} else if (this.content.ios instanceof WKWebView) {
// ensure that we can trigger the refresh, even if the content is not large enough
this.content.ios.scrollView.alwaysBounceVertical = true;
Expand Down
1 change: 1 addition & 0 deletions src/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"node_modules/tns-core-modules/tns-core-modules.d.ts",
"node_modules/tns-platform-declarations/ios.d.ts",
"node_modules/tns-platform-declarations/android.d.ts",
"node_modules/nativescript-ui-listview/platforms/ios/typings/listview.d.ts",
"pulltorefresh-common.ts",
"pulltorefresh.android.ts",
"pulltorefresh.ios.ts"
Expand Down

0 comments on commit e5884bb

Please sign in to comment.