Files
lucide/packages/lucide-react-native
Jacek Tomaszewski 7a68e10b12 fix(lucide-react-native): remove icons namespace export to enable tree-shaking (#3868)
* fix(lucide-react-native): remove icons namespace export to enable tree-shaking

The `export * as icons from './icons'` statement defeats tree-shaking
because bundlers cannot determine which exports from the namespace are
actually used at build time. This causes all 1600+ icons to be included
in the final bundle even when only a few are imported.

This change removes the namespace re-export while keeping all individual
icon exports available via `export * from './icons'`.

BREAKING CHANGE: The `icons` namespace export is no longer available.
Users should import icons directly: `import { Activity } from 'lucide-react-native'`
instead of `import { icons } from 'lucide-react-native'; icons.Activity`.

* Add icons entry file to improve treeshaking

* Format code

---------

Co-authored-by: Eric Fennis <eric.fennis@gmail.com>
2025-12-18 11:44:26 +01:00
..
2024-02-01 14:38:21 +01:00

Lucide icon library for React Native applications.

Lucide icon library for React Native applications.

npm NPM Downloads GitHub

About · Icons · Documentation · License

Lucide React Native

Implementation of the lucide icon library for React Native applications.

Installation

pnpm add lucide-react-native
npm install lucide-react-native
yarn add lucide-react-native
bun add lucide-react-native

Documentation

For full documentation, visit lucide.dev

Community

Join the Discord server to chat with the maintainers and other users.

License

Lucide is licensed under the ISC license. See LICENSE.

Sponsors

Powered by Vercel

DigitalOcean Referral Badge

Awesome backers 🍺

Scipress sponsor badge pdfme sponsor badge