import { Button as RNButton, type ButtonProps } from "react-native"; import { useCssElement, type StyledConfiguration, type StyledProps, } from "react-native-css"; import { copyComponentProperties } from "./copyComponentProperties"; const mapping: StyledConfiguration = { className: { target: false, nativeStyleMapping: { color: "color", }, }, }; export const Button = copyComponentProperties( RNButton, (props: StyledProps) => { return useCssElement(RNButton, props, mapping); }, ); export default Button;