web-ridge / react-native-paper-tabs

Smooth and fast cross platform Material Design Tabs for React Native Paper
https://reactnativepapertabs.com
MIT License
189 stars 34 forks source link

Using custom icon from Material Icons is not working #27

Closed LucasArgate closed 2 years ago

LucasArgate commented 2 years ago

Hello guys, im using this wonderfull solution, but i needs to change the default icons to Material Design Icons:

import Icon from 'react-native-vector-icons/MaterialIcons'
....
<TabScreen label="Geral" icon={<Icon name="add"/>} style={{color:'#FFF'}}>

How can i do this? Thanks for your attention!

RichardLindhout commented 2 years ago

It does use Material Community Icons, but this could also work if I'm correct

<TabScreen label="Geral" icon={iconProps => <Icon name="add" {...iconProps}/>} style={{color:'#FFF'}}>