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

Function getCustomFabSize

src/components/FAB/utils.ts:373–377  ·  view source on GitHub ↗
(customSize: number, roundness: number)

Source from the content-addressed store, hash-verified

371};
372
373const getCustomFabSize = (customSize: number, roundness: number) => ({
374 height: customSize,
375 width: customSize,
376 borderRadius: roundness === 0 ? 0 : customSize / roundness,
377});
378
379export const getFabStyle = ({
380 size,

Callers 1

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