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

Function argbThemeToHexTheme

docs/src/utils/themes.tsx:50–55  ·  view source on GitHub ↗
(theme: ARGBTheme)

Source from the content-addressed store, hash-verified

48};
49
50const argbThemeToHexTheme = (theme: ARGBTheme) => {
51 return Object.fromEntries(
52 //@ts-ignore
53 Object.entries(theme).map(([key, value]) => [key, Color(value).hex()])
54 ) as CSSTheme;
55};
56
57const argbThemeToRgbTheme = (theme: ARGBTheme) => {
58 return Object.fromEntries(

Callers 1

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