logo
On this page

Configure Video layouts


Video Conference Kit (ZegoUIkitPrebuiltVideoConference) currently supports the gallery layout, each layout has its own configurations. To select and configure the layout you want, use the layout parameter in the config:

The configuration supported by the gallery layout is:

addBorderRadiusAndSpacingBetweenView: In gallery layout, this can be used to add border radius and spacing between speaker views. true: enabled (by default). false: disabled.

The effect is as follows:

Adding border radius and spacingWithout border radius and spacing

Here is the reference code:

Untitled
import React, { Component } from 'react';
import ZegoUIKitPrebuiltVideoConference from '@zegocloud/zego-uikit-prebuilt-video-conference-rn';
import { ZegoLayoutMode } from '@zegocloud/zego-uikit-rn'

export default function VideoConferencePage(props) {
    return (
        <View >
            <ZegoUIKitPrebuiltVideoConference
                appID={yourAppID}
                appSign={yourAppSign}
                userID={userID}
                userName={userName}
                conferenceID={conferenceID}
                
                config={{
                    onLeave: () => {props.navigation.navigate('HomePage')},
                    layout:{
                        mode: ZegoLayoutMode.gallery,
                        config: {
                            addBorderRadiusAndSpacingBetweenView: false
                        }
                    }
                }}
            />
        </View>
    );
}
1
Copied!