// withHooks //noPage import esp from 'esoftplay/esp'; import { useRef } from 'react'; import { Image, ImageStyle, View } from 'react-native'; export interface LibImage_shadowArgs { } export interface LibImage_shadowProps { style: ImageStyle, source: any, darkMode?: boolean, shadowRadius?: number, blurRadius?: number } /** Klik [disini](https://github.com/dev-esoftplay/mobile-docs/blob/main/modules/lib/image_shadow.md) untuk melihat dokumentasi*/ export default function m(props: LibImage_shadowProps): any { const LibPicture = useRef(esp.mod("lib/picture")).current let { height, width }: any = props.style if (!height || !width) throw new Error(esp.lang("lib/image_shadow", "error")) const extra_height = (props.shadowRadius || 0.15) * (Number(height) || 1) return ( ) }