import React from 'react';
import { TouchableOpacity as RNTouchableOpacity, TouchableOpacityProps } from 'react-native';

interface MyTouchableOpacityProps extends TouchableOpacityProps {
  children?: React.ReactNode;
}

const MyTouchableOpacity: React.FC<MyTouchableOpacityProps> = ({ children, ...props }) => {
  return (
    <RNTouchableOpacity {...props}>
      {children}
    </RNTouchableOpacity>
  );
};

export default MyTouchableOpacity;