MCPcopy
hub / github.com/callstack/react-native-paper / shadow

Function shadow

src/styles/shadow.tsx:11–16  ·  view source on GitHub ↗
(
  elevation: number | Animated.Value = 0,
  isV3 = false
)

Source from the content-addressed store, hash-verified

9const MD3_SHADOW_COLOR = MD3Colors.primary0;
10
11export default function shadow(
12 elevation: number | Animated.Value = 0,
13 isV3 = false
14) {
15 return isV3 ? v3Shadow(elevation) : v2Shadow(elevation);
16}
17
18function v2Shadow(elevation: number | Animated.Value = 0) {
19 if (elevation instanceof Animated.Value) {

Callers 2

Surface.tsxFile · 0.85
AppbarHeaderFunction · 0.85

Calls 2

v3ShadowFunction · 0.85
v2ShadowFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…