UNPKG

create-nova-expo-template

Version:

A template for creating a new React Native app using Expo and TypeScript, with a focus on performance and best practices.

17 lines (16 loc) 305 B
export default function getShadowStyle({ radius = 5, opacity = 0.2, offsetY = 2, } = {}) { return { shadowColor: "#000", shadowOpacity: opacity, shadowOffset: { width: 0, height: offsetY, }, shadowRadius: radius, elevation: radius * 0.5, }; }