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

Function prepareThemes

docs/src/utils/themes.tsx:210–222  ·  view source on GitHub ↗
(colors: RGBColorList)

Source from the content-addressed store, hash-verified

208};
209
210export const prepareThemes = (colors: RGBColorList) => {
211 const light = prepareVariant({
212 ...colors,
213 type: 'light',
214 });
215
216 const dark = prepareVariant({
217 ...colors,
218 type: 'dark',
219 });
220
221 return { light, dark };
222};

Callers 1

DynamicColorThemeFunction · 0.90

Calls 1

prepareVariantFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…