{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "skeleton",
  "title": "Skeleton",
  "type": "registry:ui",
  "files": [
    {
      "path": "packages/registry-native/components/skeleton/Skeleton.tsx",
      "content": "import * as React from 'react'\nimport type { ViewProps } from 'react-native'\nimport Animated, {\n  useAnimatedStyle,\n  useReducedMotion,\n  useSharedValue,\n  withRepeat,\n  withTiming,\n} from 'react-native-reanimated'\nimport { cn } from '@/lib/utils'\nimport { motionDurations } from '@/lib/motion'\n\nexport interface SkeletonProps extends ViewProps {\n  className?: string\n  /** Gentle opacity pulse. Automatically static under reduced motion. */\n  pulse?: boolean\n}\n\n/** Loading placeholder that mirrors final geometry. Hidden from assistive\n *  tech — mark the loading region busy at the screen level instead. */\nfunction Skeleton({ className, pulse = true, ...props }: SkeletonProps) {\n  const reduced = useReducedMotion()\n  const opacity = useSharedValue(1)\n  const pulseStyle = useAnimatedStyle(() => ({ opacity: opacity.value }))\n  const pulsing = pulse && !reduced\n\n  React.useEffect(() => {\n    opacity.value = pulsing ? withRepeat(withTiming(0.55, { duration: motionDurations.slow * 2 }), -1, true) : 1\n  }, [pulsing, opacity])\n\n  return (\n    <Animated.View\n      aria-hidden\n      style={pulsing ? pulseStyle : undefined}\n      className={cn('bg-muted rounded-md', className)}\n      {...props}\n    />\n  )\n}\n\nexport { Skeleton }\n",
      "type": "registry:ui",
      "target": "~/components/ui/skeleton/Skeleton.tsx"
    },
    {
      "path": "packages/registry-native/components/skeleton/index.ts",
      "content": "export { Skeleton, type SkeletonProps } from './Skeleton'\n",
      "type": "registry:ui",
      "target": "~/components/ui/skeleton/index.ts"
    }
  ],
  "dependencies": [
    "react-native-reanimated"
  ],
  "devDependencies": [],
  "registryDependencies": [
    "https://native.uipkge.dev/r/native/motion.json"
  ],
  "description": "Loading placeholder block sized by className to mirror final layout, with a reduced-motion-safe opacity pulse. Hidden from assistive tech; announce loading at the region level.",
  "categories": [
    "feedback"
  ]
}