{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "text",
  "title": "Text",
  "type": "registry:ui",
  "files": [
    {
      "path": "packages/registry-native/components/text/Text.tsx",
      "content": "import * as React from 'react'\nimport { Platform, type TextProps as RNTextProps } from 'react-native'\nimport Animated, { useReducedMotion } from 'react-native-reanimated'\nimport { cssInterop } from 'react-native-css-interop'\nimport { cn } from '@/lib/utils'\nimport { enterFor, exitFor, type EnterPreset, type ExitPreset } from '@/lib/motion'\n\ncssInterop(Animated.Text, { className: 'style' })\n\nexport type TextVariant = 'default' | 'muted' | 'secondary'\nexport type TextSize = 'xs' | 'sm' | 'default' | 'lg' | 'xl' | 'title'\n\nexport interface TextProps extends RNTextProps {\n  className?: string\n  variant?: TextVariant\n  size?: TextSize\n  /** Mount entrance with optional stagger delay. Uses Animated.Text so inline flow is preserved. */\n  enter?: EnterPreset\n  enterDelay?: number\n  /** Unmount exit with optional delay. */\n  exit?: ExitPreset\n  exitDelay?: number\n}\n\nconst variantClasses: Record<TextVariant, string> = {\n  default: 'text-foreground',\n  muted: 'text-muted-foreground',\n  secondary: 'text-secondary-foreground',\n}\n\nconst sizeClasses: Record<TextSize, string> = {\n  xs: 'text-[13px] leading-[18px]',\n  sm: 'text-[15px] leading-[21px]',\n  default: Platform.OS === 'ios' ? 'text-[17px] leading-[22px]' : 'text-[16px] leading-[24px]',\n  lg: 'text-[18px] leading-[28px]',\n  xl: 'text-[20px] font-semibold leading-[28px]',\n  title: 'text-[24px] font-bold leading-[32px]',\n}\n\nconst Text = React.forwardRef<React.ComponentRef<typeof Animated.Text>, TextProps>(\n  (\n    {\n      className,\n      variant = 'default',\n      size = 'default',\n      enter = 'none',\n      enterDelay,\n      exit = 'none',\n      exitDelay,\n      ...props\n    },\n    ref,\n  ) => {\n    const reduced = useReducedMotion()\n    return (\n      <Animated.Text\n        ref={ref}\n        entering={reduced ? undefined : enterFor(enter, { delay: enterDelay })}\n        exiting={reduced ? undefined : exitFor(exit, { delay: exitDelay })}\n        className={cn(variantClasses[variant], sizeClasses[size], className)}\n        {...props}\n      />\n    )\n  },\n)\nText.displayName = 'Text'\n\nexport { Text }\n",
      "type": "registry:ui",
      "target": "~/components/ui/text/Text.tsx"
    },
    {
      "path": "packages/registry-native/components/text/index.ts",
      "content": "export { Text, type TextProps, type TextSize, type TextVariant } from './Text'\n",
      "type": "registry:ui",
      "target": "~/components/ui/text/index.ts"
    }
  ],
  "dependencies": [
    "react-native-reanimated",
    "react-native-css-interop"
  ],
  "devDependencies": [],
  "registryDependencies": [
    "https://native.uipkge.dev/r/native/motion.json"
  ],
  "description": "Themed RN Text (Animated.Text, inline flow preserved) with variant + size and staggered entering/exiting motion.",
  "categories": [
    "typography"
  ]
}