Skip to content

Latest commit

 

History

History
executable file
·
59 lines (51 loc) · 1.93 KB

RadioButton.md

File metadata and controls

executable file
·
59 lines (51 loc) · 1.93 KB

##radio-button-headref

Radio Button

Radio buttons let the user select any one from a set of options.
Replacing Component: React Native <TouchableOpacity>

Preview ios radio-button-headref Preview android radio-button-headref

Syntax

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

Configuration

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