{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "aspect-ratio", "type": "registry:ui", "title": "Aspect Ratio", "description": "Constrains children to a fixed width/height ratio.", "registryDependencies": [ "https://raw.githubusercontent.com/truongnat/rnui/main/registry/dist/nativewind/utils.json", "https://raw.githubusercontent.com/truongnat/rnui/main/registry/dist/nativewind/theme.json" ], "files": [ { "path": "registry/shared/ui/aspect-ratio.tsx", "type": "registry:ui", "target": "components/ui/aspect-ratio.tsx", "content": "import { View, type ViewProps } from 'react-native';\nimport { cn } from '@/lib/utils';\n\nexport interface AspectRatioProps extends ViewProps {\n ratio?: number;\n className?: string;\n}\n\nexport function AspectRatio({\n ratio = 1,\n className,\n style,\n children,\n ...props\n}: AspectRatioProps) {\n return (\n \n {children}\n \n );\n}\n" } ] }