"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const react_1 = tslib_1.__importDefault(require("react"));
const styles_1 = require("./styles");
const defaultSize = 20;
const RadioButton = ({ id, accessibility, radioButtonColor, checkedRadioButtonColor, size = defaultSize, internalSize = defaultSize - 7, checked = false, onPress = () => { }, label, labelStyle = {}, ...rest }) => (<styles_1.Wrapper id={id || accessibility} accessibility={accessibility} onPress={onPress} {...rest}>
    <styles_1.Radio id="" accessibility={''} onPress={onPress} radioButtonColor={radioButtonColor} size={size}>
      {checked && (<styles_1.CheckedRadio checkedRadioButtonColor={checkedRadioButtonColor} internalSize={internalSize}/>)}
    </styles_1.Radio>
    {label && <styles_1.Label style={labelStyle}>{label}</styles_1.Label>}
  </styles_1.Wrapper>);
exports.default = RadioButton;
//# sourceMappingURL=index.js.map