Skip to content

Latest commit

 

History

History
executable file
·
72 lines (67 loc) · 2.65 KB

Footer.md

File metadata and controls

executable file
·
72 lines (67 loc) · 2.65 KB

Footer Default

  • NativeBase component that renders as Footer for your screen.
  • There can be a single Footer component into your Container.
  • To have Footer for your screen, include <Footer> component within <Container>.
  • Footer takes input as: Button, Text, Icon, InputGroup or any other custom View.
  • The components those are defined within <Footer> will be rendered in the same order that you define them.
  • Footer is provided with default platform specific styles.
  • User can add custom styles while defining <Footer> within their app.
  • Replacing Component: React Native <View>

Preview ios Footer_Default Preview android Footer_Default

Syntax

import React, { Component } from 'react';
import { Container, Header, Text, Button, Icon, Left, Body, Right } from 'native-base';
export default class HeaderExample extends Component {
    render() {
        return (
            <Container>
                <Footer>
                    <Left>
                        <Button transparent>
                            <Icon name='call' />
                        </Button>
                    </Left>
                    <Body>
                        <Text>Footer</Text>
                    </Body>
                    <Right>
                        <Button transparent>
                            <Icon name='message' />
                        </Button>
                    </Right>
                </Footer>
            </Container>
        );
    }
}

Configuration

Property Default Option Description
backgroundColor iOS: #F8F8F8
Android: #039BE5
user-defined Background color for header
height - user-defined Height for header