I have country codes from a file, I render it like that, it returns all country names and codes perfectly.
<TouchableOpacity
style={st.oneCode}
onPress={selectItem}>
<View
style={[
st.filterCheckMarkWrapper,
check === false &&
st.filterCheckmarkInactiveColor,
]}>
{check === true && (
<View style={st.filterCheckmark} />
)}
</View><Text style={st.CodeText}>
{item.countryName}: +{item.phoneCode}
</Text>
</TouchableOpacity>
but when check is true, all of the text are checked, how can i fix it?
Aucun commentaire:
Enregistrer un commentaire