Interface defining the props for the MiniCardAudio component.

interface MiniCardAudioOptions {
    customStyle?: StyleProp<ViewStyle>;
    name: string;
    showWaveform: boolean;
    overlayPosition?: OverlayPosition;
    barColor?: string;
    textColor?: string;
    imageSource?: string;
    roundedImage?: boolean;
    imageStyle?: StyleProp<ImageStyle>;
    style?: object;
    renderContent?: ((options: {
        defaultContent: ReactNode;
        dimensions: {
            width: number;
            height: number;
        };
    }) => ReactNode);
    renderContainer?: ((options: {
        defaultContainer: ReactNode;
        dimensions: {
            width: number;
            height: number;
        };
    }) => ReactNode);
}

Properties

customStyle?: StyleProp<ViewStyle>

Custom styles to apply to the card.

name: string

The name to display on the card.

showWaveform: boolean

Flag to show or hide the waveform animation.

overlayPosition?: OverlayPosition

Position of the overlay on the card.

'topLeft'
barColor?: string

The color of the waveform bars.

'white'
textColor?: string

The color of the text.

'white'
imageSource?: string

The source URI for the background image.

roundedImage?: boolean

Flag to apply rounded corners to the image.

false
imageStyle?: StyleProp<ImageStyle>

Custom styles to apply to the image.

style?: object

Optional custom style to apply to the container.

renderContent?: ((options: {
    defaultContent: ReactNode;
    dimensions: {
        width: number;
        height: number;
    };
}) => ReactNode)

Optional function to render custom content, receiving the default content and dimensions.

renderContainer?: ((options: {
    defaultContainer: ReactNode;
    dimensions: {
        width: number;
        height: number;
    };
}) => ReactNode)

Optional function to render a custom container, receiving the default container and dimensions.