I have a list of Items along with Check Box. I face a problem that when I click on a single check box all the checkboxes are selected. I want to check only those box who I will select.
const Items = ({item, index}) => {
return (
<View style={styles.status}>
<CheckBox onAnimationType='fill' offAnimationType='fade' boxType='square' disabled={false}
onValueChange={()=>{onChangeValue(item, index)}} />
</View>
);}
return (
<FlatList
keyExtractor={(item, index) => item + index}
data={students}
renderItem={Items}
)