From bd284dd8f327779bcb06a7e1a14adcea7d32d528 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=81=82=E5=85=88=E7=94=9F?= <572545017@qq.com> Date: Mon, 9 Apr 2018 23:45:43 +0800 Subject: [PATCH] =?UTF-8?q?android=20=E8=BF=94=E5=9B=9E=E9=94=AE=E9=80=80?= =?UTF-8?q?=E5=87=BA=E7=A8=8B=E5=BA=8F=20=E9=87=8D=E6=96=B0=E6=89=93?= =?UTF-8?q?=E5=BC=80=E5=BA=94=E7=94=A8=E6=97=A0=E6=B3=95=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/index.js b/src/index.js index 57f75e8..6380e3f 100644 --- a/src/index.js +++ b/src/index.js @@ -28,6 +28,10 @@ export default class ActionSheet extends Component { this.__should_not_render = true; } } + + componentWillUnmount() { + global.__action_sheet = null; + } show (opts, callback) { let sheets = this.state.sheets;