diff --git a/lib/Toast.js b/lib/Toast.js index f765306..69ed2e9 100644 --- a/lib/Toast.js +++ b/lib/Toast.js @@ -32,16 +32,16 @@ class Toast extends Component { _toast = null; - componentWillMount = () => { + componentDidMount = () => { this._toast = new RootSiblings(); }; - componentWillReceiveProps = nextProps => { + componentDidUpdate = prevProps => { this._toast.update(); };