Chapter 101: Optimizations
Core Idea
Learn how to optimize the bundle size of your React Native and Expo web exports by tree-shaking Lucide icons.
Key Concepts
- The Metro tree-shaking limitation
- Recommended: import icons individually
Code Examples
import { Camera } from 'lucide-react-native';
- What it demonstrates: Optimizations usage pattern from the official Lucide docs.
Key Takeaways
- The Metro tree-shaking limitation
- Recommended: import icons individually
Connects To
- React Native: part of the React Native section of the Lucide docs.
- Lucide for React Native: overview page for this section.