【发布时间】:2021-06-27 15:26:20
【问题描述】:
我有一个文件中的国家代码,我这样渲染它, 它完美地返回所有国家名称和代码。
<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>
但是当检查为真时,所有的文本都被检查了,我该如何修复它?
【问题讨论】:
-
看看我的解决方案。
标签: reactjs react-native checkbox