Skip to content

Commit

Permalink
fix(ios): should fix all cases
Browse files Browse the repository at this point in the history
  • Loading branch information
farfromrefug committed Oct 6, 2020
1 parent 6ef4c81 commit 3fcb7ad
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/pulltorefresh.ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,12 @@ export class PullToRefresh extends PullToRefreshBase {
);
}

public _onContentChanged(oldView: View, newView: View) {
if (!newView) {
onLoaded() {
super.onLoaded();
this._onContentChanged(null, this.content);
}
_onContentChanged(oldView, newView) {
if (!newView || !newView.nativeViewProtected) {
return;
}
const nNewView = newView.nativeViewProtected;
Expand Down

0 comments on commit 3fcb7ad

Please sign in to comment.