diff options
author | Shravya Ramesh <shravs1208@gmail.com> | 2021-05-20 10:10:58 -0700 |
---|---|---|
committer | Shravya Ramesh <shravs1208@gmail.com> | 2021-05-20 17:58:15 -0700 |
commit | 9cd597d1f1eb232540337d5f1e241ba00e6610fa (patch) | |
tree | af8319aac2f635025ad7c83607e38a35fff4839c /src/components/common/TaggRadioButton.tsx | |
parent | 437c4e9d10bd8c62d40140851c7d509dee77a7e2 (diff) |
Better generic radio button, Use button in cell
Diffstat (limited to 'src/components/common/TaggRadioButton.tsx')
-rw-r--r-- | src/components/common/TaggRadioButton.tsx | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/components/common/TaggRadioButton.tsx b/src/components/common/TaggRadioButton.tsx index bd48bd5c..fc4008e5 100644 --- a/src/components/common/TaggRadioButton.tsx +++ b/src/components/common/TaggRadioButton.tsx @@ -3,12 +3,10 @@ import {StyleSheet, TouchableOpacity, View} from 'react-native'; interface TaggRadioButtonProps { pressed: boolean; - setPressed: Function; onPress: Function; } const TaggRadioButton: React.FC<TaggRadioButtonProps> = ({ pressed, - setPressed, onPress, }) => { const activeOuterStyle = { @@ -22,7 +20,6 @@ const TaggRadioButton: React.FC<TaggRadioButtonProps> = ({ <TouchableOpacity style={[styles.outer, activeOuterStyle]} onPress={() => { - setPressed(!pressed); onPress(); }}> {pressed && <View style={[styles.inner, activeInnerStyle]} />} |