diff --git a/lib/Toast.js b/lib/Toast.js index f765306..1a32c5d 100644 --- a/lib/Toast.js +++ b/lib/Toast.js @@ -14,12 +14,15 @@ class Toast extends Component { static durations = durations; static show = (message, options = {position: positions.BOTTOM, duration: durations.SHORT}) => { - return new RootSiblings( - {message} - ); + return new Promise(resolve => { + setTimeout(() => resolve(new RootSiblings( + {message} + ), + ), 0); + }); }; static hide = toast => {