Skip to content

Latest commit

 

History

History
40 lines (36 loc) · 1.61 KB

CustomTextButton.md

File metadata and controls

40 lines (36 loc) · 1.61 KB

Capitalize Button Text

To have Button text rendered with uppercase, include capitalize prop.
Note: This prop is applicable only for Android.


IOS Android
*Syntax*
import React, { Component } from 'react';
import { Container, Content, Button } from 'native-base';
​
export default class CapitalizeButtonTextExample extends Component {
    render() {
        return (
            <Container>
                <Content>
                    // NativeBase default style
                    <Button> Click Me! </Button>

                    // Using capitalize prop
                    <Button capitalize> Click Me! </Button>
                </Content>
            </Container>
        );
    }
}