Lucide icons for React Native, with a ClassName prop for nativewind
npm install lucide-nativewindlucide-react-native to work with NativeWind. It provides Lucide icons with an additional className prop to allow for easy integration with NativeWind.Using npm:
``bash`
npm install lucide-nativewind
Using yarn:
`bash`
yarn add lucide-nativewindlucide-nativewindUsage
is built with ES modules so it's completely tree-shakable. Each icon can be imported as a react component.
All icons can be imported the same as if using the lucide-react-native package`diff`
- import { ArrowLeftCircleIcon } from 'lucide-react-native';
+ import { ArrowLeftCircleIcon } from 'lucide-nativewind';
to add the className prop.`jsx
import { iconWithClassName } from 'lucide-nativewind';
import MyCustomIcon from './MyCustomIcon';const MyCustomIconWithClassName = iconWithClassName(MyCustomIcon);
`Versioning
The version is automatically kept in sync with lucide-react-native`