Skip to content

Latest commit

 

History

History
executable file
·
33 lines (29 loc) · 1.35 KB

File metadata and controls

executable file
·
33 lines (29 loc) · 1.35 KB

Tab Default

Tab are a horizontal region of buttons or links that allow for a consistent navigation experience between screens. It can contain any combination of text and icons, and is a popular method for enabling mobile navigation.
They are much similar to FooterTabs.

Preview ios Tab_Default Preview android Tab_Default

Syntax

import React, { Component } from 'react';
import { Container, Content, Tab, Button, Text } from 'native-base';
export default class TabsExample extends Component {
    render() {
        return (
            <Container>
                <Content>
                    <Tab>
                        <Button>
                            <Text>Tab 1</Text>
                        </Button>
                        <Button active>
                            <Text>Tab 2</Text>
                        </Button>
                    </Tab>
                </Content>
            </Container>
        );
    }
}