I make tests on React Native. I use react-native-paper
for this. This is my code:
{(!props.question.isSingleAnswer && props.question.answers.length) && <View> {props.question.answers.map((item) => (<List.Item key={item.id.toString()} title={item.title} left={checkProps => <Checkbox {...checkProps} status='unchecked' onPress={() => addAnswer(props.question, item)}/>} /> ))}</View>}
But I can't check checkboxes. The same problem with radio buttons.
Why does it happen and how can I fix it?
UPD: the problem was solved. Question is closed.