Skip to main content
Back to changelog

Icons for React Native and Expo

vortex-icons v2.1.0: Icons for React Native and Expo

Use the same named icon imports on iOS, Android, and the web.

New features

  • Added React Native and Expo support to @vortexlabs/vortex-icons. Pass the same named import, such as ArrowRight, to Icon on native and Icon on web. On iOS and Android, install react-native-svg@>=15.0.0. Existing web imports need no changes.

Breaking changes

  • Changed the icon component signature to accept optional size and color props. TypeScript could previously infer a declaration for an exported icon collection. If declaration generation now reports that it cannot name IconSourceProps, annotate the export using the type of a named icon.
Before → After
// Before
export const arrows = [ArrowLeft, ArrowRight];

// After
export const arrows: (typeof ArrowRight)[] = [ArrowLeft, ArrowRight];