import { forwardRef } from 'react'; import { Pressable, Text as RNText } from 'react-native'; import * as Slot from '../slot'; import type { RootProps, RootRef, TextProps, TextRef } from './label.types'; const Root = forwardRef(({ asChild, ...props }, ref) => { const Component = asChild ? Slot.Pressable : Pressable; return ; }); Root.displayName = 'HeroUINative.Primitive.Label.Root'; // -------------------------------------------------- const Text = forwardRef(({ asChild, ...props }, ref) => { const Component = asChild ? Slot.Text : RNText; return ; }); Text.displayName = 'HeroUINative.Primitive.Label.Text'; export { Root, Text };