mirror of
https://github.com/DocNR/POWR.git
synced 2025-04-23 01:01:27 +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,
|
||
|
},
|
||
|
},
|
||
|
});
|
||
|
}
|