Skip to content

Latest commit

 

History

History
46 lines (42 loc) · 1.77 KB

ButtonTheme.md

File metadata and controls

46 lines (42 loc) · 1.77 KB

Button Theme

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

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

IOS Android

Syntax

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