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