MediaSFU React Native
    Preparing search index...

    Variable WelcomePageConst

    WelcomePage: React.FC<WelcomePageOptions> = ...

    WelcomePage component allows users to enter event details manually or by scanning a QR code. It validates the input and attempts to connect to a socket with the provided credentials.

    The properties for the WelcomePage component.

    The rendered WelcomePage component.

    import React from 'react';
    import { WelcomePage } from 'mediasfu-reactnative';

    function App() {
    const parameters = {
    imgSrc: 'https://example.com/logo.png',
    showAlert: alertFunction,
    updateIsLoadingModalVisible: toggleLoadingModal,
    connectSocket: connectToSocket,
    updateSocket: setSocket,
    updateValidated: setValidated,
    updateApiUserName: setApiUserName,
    updateApiToken: setApiToken,
    updateLink: setEventLink,
    updateRoomName: setRoomName,
    updateMember: setUserName,
    };

    return (
    <WelcomePage parameters={parameters} />
    );
    }

    export default App;