Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6213

Can't tap on checkboxes in React Native

$
0
0

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.


Viewing all articles
Browse latest Browse all 6213

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>