()
| 3 | import { useState } from "react"; |
| 4 | |
| 5 | export default function CheckboxesExample() { |
| 6 | const [checked, setChecked] = useState(true); |
| 7 | |
| 8 | return ( |
| 9 | <View style={styles.container}> |
| 10 | <Text style={styles.header}>Checkbox Example</Text> |
| 11 | <Checkbox |
| 12 | checked={checked} |
| 13 | onCheckedChange={(v) => { |
| 14 | console.log("onCheckedChange", v); |
| 15 | setChecked(v); |
| 16 | }} |
| 17 | /> |
| 18 | </View> |
| 19 | ); |
| 20 | } |
| 21 | |
| 22 | const styles = StyleSheet.create({ |
| 23 | container: { |
nothing calls this directly
no outgoing calls
no test coverage detected