import { TouchableOpacity as RNTouchableOpacity, type TouchableOpacityProps, } from "react-native"; import { useCssElement, type StyledConfiguration, type StyledProps, } from "react-native-css"; import { copyComponentProperties } from "./copyComponentProperties"; const mapping: StyledConfiguration = { className: "style", }; export const TouchableOpacity = copyComponentProperties( RNTouchableOpacity, (props: StyledProps) => { return useCssElement(RNTouchableOpacity, props, mapping); }, ); export default TouchableOpacity;