import React, { Component } from 'react' import { View, TouchableOpacity, } from 'react-native' import styles from '../../styles' import { AppText } from '../app-text' export default class RadioButton extends Component { render() { return ( { this.props.buttons.map(({ label, value }) => { const isActive = value === this.props.active return ( this.props.onSelect(value)} key={value} activeOpacity={1} > {isActive ? : null} {label} ) }) } ) } }