POWR/lib/icons/iconWithClassName.ts

15 lines
307 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,
},
},
});
}