react-native-simple-radio-button icon indicating copy to clipboard operation
react-native-simple-radio-button copied to clipboard

How to write the label by myself in RadioButtonLabel ?

Open Zabi-Progton opened this issue 6 years ago • 1 comments

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 avatar Nov 06 '18 06:11 Zabi-Progton

@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 }))}

dinithminura avatar Nov 13 '18 08:11 dinithminura