MediaSFU React Native
    Preparing search index...

    Interface SubAspectComponentOptions

    Options for rendering SubAspectComponent.

    SubAspectComponentOptions

    Content:

    interface SubAspectComponentOptions {
        backgroundColor: string;
        children: ReactNode;
        showControls?: boolean;
        containerWidthFraction?: number;
        containerHeightFraction?: number;
        defaultFractionSub?: number;
        style?: StyleProp<ViewStyle>;
        renderContent?: (
            options: {
                defaultContent: Element;
                dimensions: { width: number; height: number };
            },
        ) => Element;
        renderContainer?: (
            options: {
                defaultContainer: Element;
                dimensions: { width: number; height: number };
            },
        ) => Element;
    }
    Index

    Properties

    backgroundColor: string

    Background color of the sub-aspect wrapper.

    children: ReactNode

    Elements displayed inside the sub-container.

    Appearance:

    showControls?: boolean

    Determines whether the container is visible and sized.

    containerWidthFraction?: number

    Fraction of window width applied to the container width.

    containerHeightFraction?: number

    Fraction of window height applied to the container height.

    defaultFractionSub?: number

    Height fraction used when controls are visible.

    Advanced Render Overrides:

    style?: StyleProp<ViewStyle>

    Additional style overrides for the container.

    Sizing:

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

    Customize the child layout.

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

    Replace the outer container implementation.