Skip to content

Latest commit

 

History

History
executable file
·
57 lines (51 loc) · 1.96 KB

CheckBox.md

File metadata and controls

executable file
·
57 lines (51 loc) · 1.96 KB

##checkbox-headref

Check Box

Check Box allows the user to select a number of items from a set of choices.
Replacing Component: React Native <TouchableOpacity>

Preview ios checkbox-headref Preview android checkbox-headref

Syntax

import React, { Component } from 'react';
import { Container, Content, ListItem, Text, CheckBox } from 'native-base';
export default class CheckBoxExample extends Component {
    render() {
        return (
            <Container>
                <Content>
                    <ListItem>
                        <CheckBox checked={true} />
                        <Text>Daily Stand Up</Text>
                    </ListItem>
                    <ListItem>
                        <CheckBox checked={false} />
                        <Text>Discussion with Client</Text>
                    </ListItem>
                </Content>
            </Container>
        );
    }
}

Configuration

Property Default Option Description
checked false true
false
Represents the state value of an item from set of choices.