Files
better-auth/examples/tanstack-example/app/lib/icons/iconWithClassName.ts
Bereket Engida 5e0edd35c2 chore:lint
2024-10-30 09:20:44 +03:00

15 lines
284 B
TypeScript

import type { LucideIcon } from "lucide-react-native";
import { cssInterop } from "nativewind";
export function iconWithClassName(icon: LucideIcon) {
cssInterop(icon, {
className: {
target: "style",
nativeStyleToProp: {
color: true,
opacity: true,
},
},
});
}