'use client'; import React from 'react'; import { createImage } from '@gluestack-ui/image'; import { Platform, Image as RNImage } from 'react-native'; import { tva } from '@gluestack-ui/nativewind-utils/tva'; import type { VariantProps } from '@gluestack-ui/nativewind-utils'; const imageStyle = tva({ base: 'max-w-full', variants: { size: { '2xs': 'h-6 w-6', 'xs': 'h-10 w-10', 'sm': 'h-16 w-16', 'md': 'h-20 w-20', 'lg': 'h-24 w-24', 'xl': 'h-32 w-32', '2xl': 'h-64 w-64', 'full': 'h-full w-full', 'none': '', }, }, }); const UIImage = createImage({ Root: RNImage }); type ImageProps = VariantProps & React.ComponentProps; const Image = React.forwardRef< React.ComponentRef, ImageProps & { className?: string } >(function Image({ size = 'md', className, ...props }, ref) { return ( ); }); Image.displayName = 'Image'; export { Image };