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

Function argbThemeToRgbTheme

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

Source from the content-addressed store, hash-verified

55};
56
57const argbThemeToRgbTheme = (theme: ARGBTheme) => {
58 return Object.fromEntries(
59 //@ts-ignore
60 Object.entries(theme).map(([key, value]) => [
61 key,
62 //@ts-ignore
63 Color(value).rgb().string(),
64 ])
65 ) as CSSTheme;
66};
67
68export const hexThemeFromColor = (
69 color: string,

Callers 2

prepareCustomColorsFunction · 0.85
prepareVariantFunction · 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…