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>
);
}
}
