"use strict";

import React from 'react';
import { View, Text, TouchableOpacity, StyleSheet } from 'react-native';
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
export const RadioInput = ({
  option,
  checked,
  onChange,
  radioColor = '#0052CD'
}) => {
  return /*#__PURE__*/_jsx(View, {
    style: styles.container,
    children: /*#__PURE__*/_jsxs(TouchableOpacity, {
      style: styles.radioContainer,
      onPress: () => onChange(option.value),
      children: [/*#__PURE__*/_jsx(View, {
        style: [styles.radioCircle, {
          borderColor: radioColor,
          backgroundColor: checked ? radioColor : 'transparent'
        }]
      }), /*#__PURE__*/_jsx(Text, {
        style: styles.radioLabel,
        children: option.label
      })]
    }, option.label)
  });
};
const styles = StyleSheet.create({
  container: {
    flexDirection: 'column'
  },
  radioContainer: {
    flexDirection: 'row',
    alignItems: 'center',
    marginBottom: 10
  },
  radioCircle: {
    width: 20,
    height: 20,
    borderRadius: 10,
    borderWidth: 2,
    marginRight: 10
  },
  radioLabel: {
    fontSize: 16,
    color: '#333'
  }
});
//# sourceMappingURL=RadioInput.js.map