From 6dd591ad218b58a2f2c97a00d6cbc52cb5a649a8 Mon Sep 17 00:00:00 2001 From: silentcloud Date: Thu, 19 Jan 2017 14:33:09 +0800 Subject: [PATCH] toast to single instance, close #745 --- components/toast/index.tsx | 1 + components/toast/index.web.tsx | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/components/toast/index.tsx b/components/toast/index.tsx index 206f25f9c11..bab6ce78020 100644 --- a/components/toast/index.tsx +++ b/components/toast/index.tsx @@ -3,6 +3,7 @@ import topView from 'rn-topview'; import ToastContainer from './ToastContainer'; function notice(content, type, duration = 3, onClose, mask = true) { + topView.remove(); topView.set(