mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-02-24 04:39:39 +01:00
* 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>
Lucide icon library for React Native applications.
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.