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

Function getExtendedFabStyle

src/components/FAB/utils.ts:425–437  ·  view source on GitHub ↗
({
  customSize,
  theme,
}: {
  customSize?: number;
  theme: InternalTheme;
})

Source from the content-addressed store, hash-verified

423});
424
425export const getExtendedFabStyle = ({
426 customSize,
427 theme,
428}: {
429 customSize?: number;
430 theme: InternalTheme;
431}) => {
432 if (customSize) return getExtendedFabDimensions(customSize);
433
434 const { isV3 } = theme;
435
436 return isV3 ? v3Extended : extended;
437};
438
439let cachedContext: CanvasRenderingContext2D | null = null;
440

Callers 1

FAB.tsxFile · 0.90

Calls 1

getExtendedFabDimensionsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…