So I have a screen where I render unknown amount of checkboxes depending on the list size. How can I control "checked" value of these boxes?
I am using react-native-elements for checkboxes.
Render method for checkboxes:
_showChoices = (list) => {
return list.map((item, i) => {
return (
<CheckBox
title={item.choice_name}
checked={}
size={25}
onIconPress={() => {}}
onPress={() => {}}
key={item.choice_id}
/>
)
})
}
If you need any more info please comment.
Thanks!
Aucun commentaire:
Enregistrer un commentaire