import React, { Component } from 'react' import { View, Text, TouchableOpacity, } from 'react-native' import styles from '../../styles' export default class RadioButton extends Component { render() { return ( { this.props.buttons.map(({ label, value }) => { const circleStyle = [styles.radioButton] if (value === this.props.active) { circleStyle.push(styles.radioButtonActive) } return ( this.props.onSelect(value)} key={value} activeOpacity={1} > {label} ) }) } ) } }