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

How to detect checkbox checked or not using react native?

$
0
0

In my scenario, I am trying to write a logic for checkbox check or uncheck. if check means need to print some string or uncheck mean need to print something else. how to achieve this using react native?

my code below

checked={this.state.checked}                onPress={() => {                  this.actiondone();                }}actiondone(){   //Here how to detect checked or not with if else}

Viewing all articles
Browse latest Browse all 6212

Trending Articles



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