Add null check to iOS tooltip (#1484)
This commit is contained in:
parent
d0d9103857
commit
6293d3d5e4
1 changed files with 7 additions and 2 deletions
|
|
@ -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 = () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue