import React from 'react'; import {StyleSheet, TouchableOpacity, View} from 'react-native'; interface TaggRadioButtonProps { pressed: boolean; setPressed: Function; onPress: Function; } const TaggRadioButton: React.FC = ({ pressed, setPressed, onPress, }) => { const activeOuterStyle = { borderColor: pressed ? '#6EE7E7' : '#BEBEBE', }; const activeInnerStyle = { backgroundColor: pressed ? '#6EE7E7' : 'white', }; return ( { setPressed(!pressed); onPress(); }}> {pressed && } ); }; export default TaggRadioButton; const styles = StyleSheet.create({ outer: { width: 20, height: 20, borderWidth: 1.5, borderRadius: 20, backgroundColor: 'white', flexDirection: 'row', alignItems: 'center', justifyContent: 'center', }, inner: { width: 14, height: 14, borderRadius: 8, }, });