From 798fe6bd8be6e89763875b7b56381f481c7f47fc Mon Sep 17 00:00:00 2001 From: Eugenia Shraga Date: Wed, 17 Oct 2018 15:22:12 +0300 Subject: [PATCH] Update ToastContainer.js --- lib/ToastContainer.js | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/lib/ToastContainer.js b/lib/ToastContainer.js index 74ce480..9a300fb 100644 --- a/lib/ToastContainer.js +++ b/lib/ToastContainer.js @@ -219,7 +219,7 @@ class ToastContainer extends Component { top: 0, bottom: this._keyboardHeight }; - + const InnerView = this.props.view; return (this.state.visible || this._animating) ? this._root = ele} > + { + props.view ? + + + : + styles.textStyle, + props.textStyle, + props.textColor && {color: props.textColor} + ]}> {this.props.children} + } : null;