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 isActive = value === this.props.active const circleStyle = [styles.radioButton] return ( this.props.onSelect(value)} key={value} activeOpacity={1} > {isActive ? : null} {label} ) }) } ) } }