Version: 3.0.0-next.38

Icon

Migrating to v3 will provide a lot more customisation option. Apart from the icons provided by @expo/vector-icon, you can also create custom icons using SVG.

Overview#

Migrating Icon components can broadly described in these points:

  • ios and android props have been deprecated.

Code Comparison#

<Icon name='home' /> // same
<Icon type='FontAwesome' name='home' /> //same
<Icon
ios='ios-menu'
android='md-menu'
style={{ fontSize: 20, color: 'red' }}
/>
// need to re-write