Skip to content

Commit afc98b2

Browse files
authored
Merge pull request Meituan-Dianping#2 from youngjuning/patch-1
Update Longlist.md
2 parents 79ce2a7 + f0c8d1a commit afc98b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/components/Longlist.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class App extends React.Component {
3030
this.refreshState(1);
3131
}
3232

33-
refreshState(pageNo) {
33+
refreshState = (pageNo) => {
3434
const params = {
3535
pageNo: pageNo || 1,
3636
pagesize: this.state.pagesize,
@@ -62,8 +62,8 @@ class App extends React.Component {
6262
return (<Text>{item.label}</Text>);
6363
}}
6464
hasRefreshControl={true}
65-
onEndReached={this.refreshState.bind(this)}
66-
onRefresh={this.refreshState.bind(this)}
65+
onEndReached={this.refreshState}
66+
onRefresh={this.refreshState}
6767
/>
6868
);
6969
}

0 commit comments

Comments
 (0)