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}