Skip to content

Commit

Permalink
代码有执行,但是刷新效果出不来,facebook/react-native#20011
Browse files Browse the repository at this point in the history
  • Loading branch information
Clearives committed Nov 5, 2018
1 parent 803b58f commit 3bdca95
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/container/other/DebtListScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ export default class DebtListScreen extends BaseScreen {
};
this.navTitle = 'DebtList';
this.navShowLine = true;
this.navShowRight = true;
this.navRightView = <Text onPress={() => {this._refresh()}}>刷新</Text>
this.onEndReachedCalledDuringMomentum = false
}

Expand Down Expand Up @@ -56,7 +58,7 @@ export default class DebtListScreen extends BaseScreen {
_refresh = () => {
this.setState({
refreshing: true,
});
},() => {console.log(this.state.refreshing)});
setTimeout(() => {
this.getAssetDebtList(1)
}, 1500)
Expand Down

0 comments on commit 3bdca95

Please sign in to comment.