From aa9de96a75cc28b3fab42e38a611ac1d8307906c Mon Sep 17 00:00:00 2001
From: Juan Carlos <juancarlos@blockshifters.com>
Date: Mon, 2 Jul 2018 11:19:57 +0200
Subject: [PATCH 1/2] added fix for "cannot read from setNativeProps" error.
 Original developer can't be bothered to merge open pull request.

---
 lib/ToastContainer.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/ToastContainer.js b/lib/ToastContainer.js
index a661d5c..2404876 100644
--- a/lib/ToastContainer.js
+++ b/lib/ToastContainer.js
@@ -140,7 +140,7 @@ class ToastContainer extends Component {
     componentWillUnmount = () => {
         Dimensions.removeEventListener('change', this._windowChanged);
         Keyboard.removeListener('keyboardDidChangeFrame', this._keyboardDidChangeFrame);
-        this._hide();
+        this._root && this._hide();
     };
 
     _animating = false;

From 20dc41b6151da700d82c9e4e9695ddfe3ed00c29 Mon Sep 17 00:00:00 2001
From: Juan Carlos <juancarlos@blockshifters.com>
Date: Tue, 3 Jul 2018 15:42:21 +0200
Subject: [PATCH 2/2] Duration bug fixed

---
 lib/Toast.js | 2 --
 1 file changed, 2 deletions(-)

diff --git a/lib/Toast.js b/lib/Toast.js
index f765306..4c0798c 100644
--- a/lib/Toast.js
+++ b/lib/Toast.js
@@ -35,14 +35,12 @@ class Toast extends Component {
     componentWillMount = () => {
         this._toast = new RootSiblings(<ToastContainer
             {...this.props}
-            duration={0}
         />);
     };
 
     componentWillReceiveProps = nextProps => {
         this._toast.update(<ToastContainer
             {...nextProps}
-            duration={0}
         />);
     };