You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Mobile/app/components/ui/box/index.tsx

20 lines
528 B

import React from "react";
import { View, ViewProps } from "react-native";
import type { VariantProps } from "@gluestack-ui/nativewind-utils";
import { boxStyle } from "./styles";
type IBoxProps = ViewProps &
VariantProps<typeof boxStyle> & { className?: string };
const Box = React.forwardRef<React.ElementRef<typeof View>, IBoxProps>(
({ className, ...props }, ref) => {
return (
<View ref={ref} {...props} className={boxStyle({ class: className })} />
);
}
);
Box.displayName = "Box";
export { Box };