Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions lib/Toast.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}
/>);
};

Expand Down
2 changes: 1 addition & 1 deletion lib/ToastContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down