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

Function getPreviewColors

docs/src/utils/themes.tsx:117–127  ·  view source on GitHub ↗
(theme: Record<string, any>)

Source from the content-addressed store, hash-verified

115};
116
117export const getPreviewColors = (theme: Record<string, any>) => {
118 const preview = { ...theme };
119
120 for (let key of nonMaterialCore) {
121 delete preview[key];
122 }
123
124 delete preview.elevation;
125
126 return Object.entries(preview);
127};
128
129export const getMatchingColor = (
130 colorName: string,

Callers 1

DynamicColorThemeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…