Please provide the following:
- SDK Version: 40
- Platforms(Android/iOS/web/all): all
- Add the appropriate “Tag” based on what Expo library you have a question on.
After update to SDK 40 vector icons names became typehinted but it also introduced annoying typesript error “type ‘string’ is not assignable” when using variables as names like here:
<MaterialCommunityIcons
style={iconStyle}
name={this.props.icon}
size={iconSize}
color={iconColor}
/>
Problem is that I cannot typehint props.icon
because icons names are not expoted by MaterialCommunityIcons
and it seems like there is no way to do this other then create wrapper component that just ignores icon name type hinting.