MCPcopy Create free account
hub / github.com/callstack/react-native-paper / SwitchProps

Interface SwitchProps

docs/src/components/Switch.tsx:3–7  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import React from 'react';
2
3interface SwitchProps {
4 value: boolean;
5 onValueChange?: () => void;
6 color: string;
7}
8
9const Switch = ({ value, onValueChange, color }: SwitchProps) => {
10 const background = value ? color : 'none';

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…