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

Function getElevationAndroid

src/components/Surface.tsx:328–337  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

326 const elevationLevel = [0, 3, 6, 9, 12, 15];
327
328 const getElevationAndroid = () => {
329 if (isAnimatedValue(elevation)) {
330 return elevation.interpolate({
331 inputRange,
332 outputRange: elevationLevel,
333 });
334 }
335
336 return elevationLevel[elevation];
337 };
338
339 const { margin, padding, transform, borderRadius } = (StyleSheet.flatten(
340 style

Callers 1

Surface.tsxFile · 0.85

Calls 1

isAnimatedValueFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…