@platformbuilders/react-native-ui
Version:
Platform Builders Shared Components Library
8 lines • 635 B
JavaScript
import React from 'react';
import If from '../If';
import { Radio, CheckedRadio } from './styles';
const RadioButton = ({ id, accessibility, radioButtonColor, checkedRadioButtonColor, size = 18, internalSize = 13, checked = false, onPress = () => { }, }) => (React.createElement(Radio, { id: id, accessibility: accessibility, onPress: onPress, radioButtonColor: radioButtonColor, size: size },
React.createElement(If, { condition: checked },
React.createElement(CheckedRadio, { checkedRadioButtonColor: checkedRadioButtonColor, internalSize: internalSize }))));
export default RadioButton;
//# sourceMappingURL=index.js.map