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

Function setCustomColor

docs/src/components/DynamicColorTheme.tsx:202–206  ·  view source on GitHub ↗
(key: string, hex: string)

Source from the content-addressed store, hash-verified

200 };
201
202 const setCustomColor = (key: string, hex: string) => {
203 setCustomColors((colors) =>
204 colors.map((color) => (color.key === key ? { ...color, hex } : color))
205 );
206 };
207
208 const setCustomName = (key: string, name: string) => {
209 setCustomColors((colors) =>

Callers 1

CustomColorFunction · 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…