Skip to content

Latest commit

 

History

History
19 lines (17 loc) · 393 Bytes

File metadata and controls

19 lines (17 loc) · 393 Bytes
export default function Example() {
  const tap = Gesture.Tap().onStart(() => {
    console.log('tap');
  });

  return (
    <GestureDetector gesture={tap}>
      <FunctionalComponent>
        <View style={styles.box} />
      </FunctionalComponent>
    </GestureDetector>
  );
}

function FunctionalComponent(props) {
  return <View collapsable={false}>{props.children}</View>;
}