import React, { forwardRef } from 'react'; import type { ActivityIndicatorProps } from 'react-native'; export function Spinner(StyledSpinner: React.ComponentType) { return forwardRef(({ ...props }: T & ActivityIndicatorProps, ref?: any) => { return ( ); }); }