import React, {memo, PropsWithChildren} from 'react';
import {requireNativeComponent, StyleProp, ViewStyle} from 'react-native';

const RNGesturePressableNoDoubleTapViewView = requireNativeComponent<{
  style?: StyleProp<ViewStyle>;
  children?: React.ReactNode;
}>('RNGesturePressableNoDoubleTapView');

interface Props {
  style?: StyleProp<ViewStyle>;
}

const RNGesturePressableNoDoubleTapComponent = ({
  children,
  style,
}: PropsWithChildren<Props>) => {
  return (
    <RNGesturePressableNoDoubleTapViewView style={style}>
      {children}
    </RNGesturePressableNoDoubleTapViewView>
  );
};

export default memo(RNGesturePressableNoDoubleTapComponent);
