Skip to content

Latest commit

 

History

History
executable file
·
63 lines (56 loc) · 2.01 KB

RadioButton.md

File metadata and controls

executable file
·
63 lines (56 loc) · 2.01 KB

Customize Radio Button

Steps to customize theme for Radio Button attributes:

Property Description
radioBtnSize Radio Button size
radioColor Unselected radio button background color
radioSelectedColor Selected radio button background color

Syntax

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