MCPcopy Create free account
hub / github.com/a7medev/react-native-ml-kit / OptionSwitch

Function OptionSwitch

example/src/core/OptionSwitch.tsx:10–21  ·  view source on GitHub ↗
({value, onChange, label}: OptionSwitchProps)

Source from the content-addressed store, hash-verified

8}
9
10const OptionSwitch = ({value, onChange, label}: OptionSwitchProps) => {
11 return (
12 <View style={styles.switchContainer}>
13 <Switch
14 value={value}
15 onValueChange={onChange}
16 accessibilityLabel={label}
17 />
18 <Text style={styles.switchLabel}>{label}</Text>
19 </View>
20 );
21};
22
23const styles = StyleSheet.create({
24 switchContainer: {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected