Steps to customize theme for Icon attributes:
| Property | Description |
|---|---|
| iconFamily | Name of Icon family |
| iconFontSize | Icon size |
| textColor | Icon text color |
Syntax
import React, { Component } from 'react-native';
import { Container, Content, Icon } from 'native-base';
import myTheme from './Themes/myTheme';
export default class ThemeIconExample extends Component {
render() {
return (
<Container>
<Content theme={myTheme}>
<Icon name='ios-star' />
</Content>
</Container>
);
}
}