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

Function getColorScheme

docs/src/components/DynamicColorTheme.tsx:152–160  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

150 const [copied, setCopied] = useState(false);
151
152 const getColorScheme = () => {
153 return JSON.stringify(
154 {
155 colors: theme,
156 },
157 null,
158 2
159 );
160 };
161
162 const onCopy = () => {
163 navigator.clipboard.writeText(getColorScheme());

Callers 2

onCopyFunction · 0.85
CodePreviewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…