Skip to content

Latest commit

 

History

History
executable file
·
45 lines (41 loc) · 1.51 KB

File metadata and controls

executable file
·
45 lines (41 loc) · 1.51 KB

button-block-headref

Block Button

A block level button spans the entire width of the parent element. Create block level buttons by adding block prop with the Button

Preview ios button-block-headref Preview android button-block-headref

Syntax

import React, { Component } from 'react';
import { Container, Header, Content, Button, Text } from 'native-base';
export default class ButtonBlockExample extends Component {
  render() {
    return (
      <Container>
        <Header />
        <Content>
          <Button block light>
            <Text>Light</Text>
          </Button>
          <Button block>
            <Text>Primary</Text>
          </Button>
          <Button block success>
            <Text>Success</Text>
          </Button>
          <Button block info>
            <Text>Info</Text>
          </Button>
          <Button block warning>
            <Text>Warning</Text>
          </Button>
          <Button block danger>
            <Text>Danger</Text>
          </Button>
          <Button block dark>
            <Text>Dark</Text>
          </Button>
        </Content>
      </Container>
    );
  }
}