Skip to content

Latest commit

 

History

History
executable file
·
83 lines (77 loc) · 2.73 KB

File metadata and controls

executable file
·
83 lines (77 loc) · 2.73 KB

Smart Button


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.*