Fixing tooltip (#1443)

* Fixing tooltip

* Add hide menu
This commit is contained in:
enahum 2018-02-15 19:38:10 -03:00 committed by Harrison Healey
parent 7f02889efc
commit d156c9f320

View file

@ -27,12 +27,25 @@ export default class ToolTip extends PureComponent {
setToolTipVisible();
};
hideMenu = () => {
if (this.refs.toolTip) {
this.refs.toolTip.hideMenu();
}
};
showMenu = () => {
if (this.refs.toolTip) {
this.refs.toolTip.showMenu();
}
};
render() {
return (
<RNToolTip
{...this.props}
onHide={this.handleHide}
onShow={this.handleShow}
ref='toolTip'
/>
);
}