parent
7f02889efc
commit
d156c9f320
1 changed files with 13 additions and 0 deletions
|
|
@ -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'
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue