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

radlistview support #49

Merged
merged 1 commit into from
Nov 15, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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