21 lines
515 B
JavaScript
21 lines
515 B
JavaScript
// Module ID: 5874
|
|
// Function ID: 5875
|
|
// Name: getShadowStyle
|
|
// Dependencies: [17]
|
|
// Exports: getShadowStyle
|
|
|
|
// Module 5874 (getShadowStyle)
|
|
import { Platform } from "get ActivityIndicator";
|
|
|
|
|
|
export const getShadowStyle = function getShadowStyle(color) {
|
|
let offset;
|
|
let opacity;
|
|
let radius;
|
|
let shadowColor = color.color;
|
|
({ offset, radius, opacity } = color);
|
|
if (shadowColor === undefined) {
|
|
shadowColor = "#000";
|
|
}
|
|
return { shadowOffset, shadowRadius, shadowColor, shadowOpacity };
|
|
};
|