import React from "react";
import { View } from "react-native";
import { cn } from "@/lib/utils";
interface SeparatorProps {
className?: string;
orientation?: "horizontal" | "vertical";
}
function Separator({
className,
orientation = "horizontal",
}: SeparatorProps) {
return (
<View
className={cn(
"bg-border",
orientation === "horizontal" ? "h-px w-full" : "h-full w-px",
className
)}
/>
);
}
export { Separator };
npx shadcn@latest add @nativeui/separatorimport { Separator } from "@/components/ui/separator"<Separator />