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

Function getAppbarColor

src/components/Appbar/utils.ts:52–70  ·  view source on GitHub ↗
({
  color,
  isDark,
  isV3,
}: BaseProps & { color: string })

Source from the content-addressed store, hash-verified

50};
51
52export const getAppbarColor = ({
53 color,
54 isDark,
55 isV3,
56}: BaseProps & { color: string }) => {
57 if (typeof color !== 'undefined') {
58 return color;
59 }
60
61 if (isDark) {
62 return white;
63 }
64
65 if (isV3) {
66 return undefined;
67 }
68
69 return black;
70};
71
72export const getAppbarBorders = (
73 style:

Callers 1

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