From 3bdca95fac79fb308134b52ac136d8f4ed837d57 Mon Sep 17 00:00:00 2001 From: clearives Date: Mon, 5 Nov 2018 10:10:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=9C=89=E6=89=A7=E8=A1=8C?= =?UTF-8?q?=EF=BC=8C=E4=BD=86=E6=98=AF=E5=88=B7=E6=96=B0=E6=95=88=E6=9E=9C?= =?UTF-8?q?=E5=87=BA=E4=B8=8D=E6=9D=A5=EF=BC=8Chttps://github.com/facebook?= =?UTF-8?q?/react-native/issues/20011?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/container/other/DebtListScreen.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/container/other/DebtListScreen.js b/src/container/other/DebtListScreen.js index 621c10b..4d6d56d 100644 --- a/src/container/other/DebtListScreen.js +++ b/src/container/other/DebtListScreen.js @@ -23,6 +23,8 @@ export default class DebtListScreen extends BaseScreen { }; this.navTitle = 'DebtList'; this.navShowLine = true; + this.navShowRight = true; + this.navRightView = {this._refresh()}}>刷新 this.onEndReachedCalledDuringMomentum = false } @@ -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)