mirror of
https://github.com/DocNR/POWR.git
synced 2025-04-22 16:51:33 +00:00
15 lines
307 B
TypeScript
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,
|
|
},
|
|
},
|
|
});
|
|
}
|