MCPcopy Index your code
hub / github.com/callstack/react-native-paper / getBackdropColor

Function getBackdropColor

src/components/FAB/utils.ts:313–327  ·  view source on GitHub ↗
({
  theme,
  customBackdropColor,
}: {
  theme: InternalTheme;
  customBackdropColor?: string;
})

Source from the content-addressed store, hash-verified

311};
312
313const getBackdropColor = ({
314 theme,
315 customBackdropColor,
316}: {
317 theme: InternalTheme;
318 customBackdropColor?: string;
319}) => {
320 if (customBackdropColor) {
321 return customBackdropColor;
322 }
323 if (theme.isV3) {
324 return color(theme.colors.background).alpha(0.95).rgb().string();
325 }
326 return theme.colors?.backdrop;
327};
328
329const getStackedFABBackgroundColor = ({ theme }: { theme: InternalTheme }) => {
330 if (theme.isV3) {

Callers 1

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