react-native-simple-radio-button
react-native-simple-radio-button copied to clipboard
How to write the label by myself in RadioButtonLabel ?
I have an object that has id, description , I want the label to be what data is in the description property of my object, how do I do this?
What would would be really helpful is, I wanted to know, what are all the props that RadioButtonLabel and other components accept?
@Zabi-Progton , I faced the same issue and resolve by using object array mapping like this,
radioForm={mycustomarray.map(item => ({ label: item.myLabel, value: item.myValue }))}