Home / Companies / Expo / Blog / Post Details
Content Deep Dive

Moving away from @expo/vector-icons

Blog post from Expo

Post Details
Company
Date Published
Author
Vojtech Novak
Word Count
699
Language
English
Hacker News Points
-
Summary

Expo is recommending users transition from @expo/vector-icons to the latest versions of icon-pack-specific @react-native-vector-icons packages, which are fully compatible with Expo apps, including Expo Go. This change is aimed at streamlining the ecosystem, minimizing confusion, and potentially reducing app bundle sizes. Initially created as a convenience wrapper around react-native-vector-icons, @expo/vector-icons is now seen as unnecessary due to the evolution of Expo and the improved capabilities of direct integrations with expo-font. The migration to @react-native-vector-icons offers benefits such as access to the latest icon sets, easier creation of custom icons, reduced app bloat, and a cleaner project setup by eliminating the need for aliasing configurations. To facilitate a smooth migration, Expo has provided a codemod tool to update imports and emphasizes the importance of checking for potential icon font conflicts. Although around 60% of apps on EAS Build use @expo/vector-icons, Expo plans to maintain the package temporarily to allow time for migration, while encouraging users to report any issues encountered during the transition. This strategic shift aligns with Expo's focus on enhancing platform-level capabilities and relying on community packages for icon solutions.