MCPcopy Create free account
hub / github.com/andrew-levy/jetpack-compose-react-native / CheckboxesExample

Function CheckboxesExample

example/app/checkboxes.tsx:5–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import { useState } from "react";
4
5export 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
22const styles = StyleSheet.create({
23 container: {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected