import React from 'react'; import { RectButton, RectButtonProps } from 'react-native-gesture-handler'; import { TSupportedThemes } from '../../../theme'; import { themes } from '../../constants'; interface ITouchProps extends RectButtonProps { children: React.ReactNode; theme: TSupportedThemes; accessibilityLabel?: string; testID?: string; } class Touch extends React.Component { private ref: any; setNativeProps(props: ITouchProps): void { this.ref.setNativeProps(props); } getRef = (ref: RectButton): void => { this.ref = ref; }; render(): JSX.Element { const { children, onPress, theme, underlayColor, ...props } = this.props; return ( {children} ); } } export default Touch;