diff --git a/app/components/options_context/options_context.ios.js b/app/components/options_context/options_context.ios.js index b15ba0e34..16b4786a2 100644 --- a/app/components/options_context/options_context.ios.js +++ b/app/components/options_context/options_context.ios.js @@ -54,7 +54,10 @@ export default class OptionsContext extends PureComponent { }; hide = () => { - this.refs.toolTip.hideMenu(); + if (this.refs.toolTip) { + this.refs.toolTip.hideMenu(); + } + this.setState({ actions: this.props.actions, }); @@ -71,7 +74,9 @@ export default class OptionsContext extends PureComponent { actions: nextActions, }); - this.refs.toolTip.showMenu(); + if (this.refs.toolTip) { + this.refs.toolTip.showMenu(); + } }; handlePress = () => {