Interface MiniAudioOptions

Interface defining the props for the MiniAudio component.

interface MiniAudioOptions {
    visible?: boolean;
    customStyle?: StyleProp<ViewStyle>;
    name: string;
    showWaveform?: boolean;
    overlayPosition?: OverlayPosition;
    barColor?: string;
    textColor?: string;
    nameTextStyling?: StyleProp<TextStyle>;
    imageSource: string;
    roundedImage?: boolean;
    imageStyle?: StyleProp<ImageStyle>;
}

Properties

visible?: boolean

Determines if the component is visible.

true
customStyle?: StyleProp<ViewStyle>

Custom styles for the component container.

name: string

The name to display on the audio player.

showWaveform?: boolean

Flag to show or hide the waveform animation.

false
overlayPosition?: OverlayPosition

The position of the overlay on the screen.

'topLeft'
barColor?: string

The color of the waveform bars.

'red'
textColor?: string

The color of the text.

'white'
nameTextStyling?: StyleProp<TextStyle>

Custom styles for the name text.

imageSource: string

The source URI for the background image.

roundedImage?: boolean

Flag to determine if the background image should be rounded.

false
imageStyle?: StyleProp<ImageStyle>

Custom styles for the background image.