Skip to content

Latest commit

 

History

History
executable file
·
71 lines (65 loc) · 2.33 KB

FooterTabs.md

File metadata and controls

executable file
·
71 lines (65 loc) · 2.33 KB

Customize Footer Tabs

Steps to customize theme for Footer Tabs attributes:

Property Description
tabBarTextColor Text color when inactive
tabBarActiveTextColor Text color when active
tabActiveBgColor Tab background color when active

Syntax

import React, { Component } from 'react-native';
import { Container, Content, Footer, FooterTab, Button, Icon } from 'native-base';
import myTheme from './Themes/myTheme';
export default class ThemeFooterTabsExample extends Component {
    render() {
        return (
            <Container>
                <Conent theme={myTheme} />
                <Footer >
                    <FooterTab>
                        <Button>
                            Apps
                            <Icon name='ios-apps-outline' />
                        </Button>
                        <Button>
                            Camera
                            <Icon name='ios-camera-outline' />
                        </Button>
                        <Button active>
                            Navigate
                            <Icon name='ios-compass' />
                        </Button>
                        <Button>
                            Contact
                            <Icon name='ios-contact-outline' />
                        </Button>
                    </FooterTab>
                </Footer>
            </Container>
        );
    }
}