Skip to content

Latest commit

 

History

History
executable file
·
54 lines (47 loc) · 1.49 KB

Icon.md

File metadata and controls

executable file
·
54 lines (47 loc) · 1.49 KB

Customize Icons

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>
        );
    }
}