BlueWallet/components/TooltipMenu.js

23 lines
509 B
JavaScript
Raw Normal View History

2021-02-26 03:37:28 +01:00
import React, { forwardRef, useEffect } from 'react';
import { View } from 'react-native';
const ToolTipMenu = (props, ref) => {
const showMenu = () => {
console.log('not implemented');
};
const hideMenu = () => {
console.log('not implemented');
};
useEffect(() => {
ref.current.showMenu = showMenu;
ref.current.hideMenu = hideMenu;
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [ref]);
return <View ref={ref} />;
2021-02-10 06:18:40 +01:00
};
2021-02-26 03:37:28 +01:00
export default forwardRef(ToolTipMenu);