Skip to content

Latest commit

 

History

History
executable file
·
37 lines (33 loc) · 1.39 KB

ButtonTheme.md

File metadata and controls

executable file
·
37 lines (33 loc) · 1.39 KB

button-theme-headref

Button Theme

NativeBase provides button with wide range of colors, size and various other props.
NativeBase provides following color themes:

  • Primary (default)
  • Success
  • Info
  • Warning
  • Danger
  • Light
  • Dark

Preview ios button-theme-headref Preview android button-theme-headref

Syntax

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