jakex7/react-native-click-outside

React Native for Web doesn't fire

TomOMara opened this issue · 2 comments

Hi Jake, cool library!

This works really well on ios, but when testing the readme example in a react-native-web application, the console log didn't fire.

export default function MyComponent() {
  const ref = useClickOutside<View>(() => console.log('clicked outside A'));
  return (
    <View ref={ref}>
      <Text>Test</Text>
    </View>
  );
}

Any thoughts?

Presumably latest version needs to be released on npm? 👀