-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
good first issueGood for newcomersGood for newcomers
Description
What problem does this feature solve?
Implementation of useClickAway on Lynx
What does the proposed API of configuration look like?
import { useRef } from '@lynx-js/react';
import { useTapAway } from '@lynx-js/react-use';
const Demo = () => {
const ref = useRef(null);
useTapAway(ref, () => {
console.log('OUTSIDE TAP');
});
return (
<view ref={ref} style={{
width: 200,
height: 200,
background: 'red',
}} />
);
};Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomers