import React from 'react'; import { TouchableOpacity, TouchableOpacityProps } from 'react-native'; import useTheme from '../../context/theme/useTheme'; import { getSxStyleAndProps } from '../../lib/sx'; import { SxProps } from '../../lib/styleDictionary'; export type TouchableProps = TouchableOpacityProps & SxProps & { sx?: SxProps; Component?: React.ComponentType; }; export const Touchable = React.forwardRef( ({ Component = TouchableOpacity, ...props }, ref) => { const theme = useTheme(); const sxResult = getSxStyleAndProps(props, theme); return ( ); } );