-
Notifications
You must be signed in to change notification settings - Fork 129
Open
Description
`
const radio_props = [
{ label: 'Male', value: 0 },
{ label: 'Female', value: 1 },
{ label: 'Gay', value: 2 },
{ label: 'Straight', value: 3 }
];
const [gender, setgender] = useState('Male');
<RadioForm
//formHorizontal={true}
style={{padding:10}}
wrapStyle={{padding:5}}
buttonSize={17}
radio_props={radio_props}
initial={-1}
labelStyle={{fontSize: 20, color: '#2ecc71',paddingLeft:10,padding:8}}
onPress={val => {setgender(radio_props[val].label);console.log(gender)}}
/>`
I am not getting correct value after using setgender !! Disappointing !
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels