import { forwardRef } from 'react'; import { View } from 'react-native'; import * as Slot from '../slot'; import type { IndicatorProps, IndicatorRef, RootProps, RootRef, } from './activity-indicator.types'; // -------------------------------------------------- const Root = forwardRef( ({ asChild, isLoading = true, ...props }, ref) => { const Component = asChild ? Slot.View : View; return ( ); } ); Root.displayName = 'HeroUINative.Primitive.ActivityIndicator.Root'; // -------------------------------------------------- const Indicator = forwardRef( ({ asChild, ...props }, ref) => { const Component = asChild ? Slot.View : View; return ( ); } ); Indicator.displayName = 'HeroUINative.Primitive.ActivityIndicator.Indicator'; export { Indicator, Root };