| IOS | Android |
|---|---|
Syntax
import React, { Component } from 'react';
import { Container, Content, Icon } from 'native-base';
import { Button } from 'native-base';
export default class ButtonExample extends Component {
render() {
return (
<Container>
<Content>
// NativeBase default style
<Button buttonText="Click Me" />
</Content>
</Container>
);
}
}Configuration
| Property | Default | Option | Description |
|---|---|---|---|
| IconLeft | - | - | Defines Icon aligned left in the Button |
| IconRight | - | - | Defines Icon aligned right in the Button |
| buttonText | - | - | Defines Text for the Button |
| style | - | - | Defines button style |
| buttonTextStyle | - | - | Defines button text style |
*Note: Accepts all other props of Button components too.*