MediaSFU React Native
    Preparing search index...

    Variable PaginationConst

    Pagination: React.FC<PaginationOptions> = ...

    Pagination Component

    The Pagination component enables page navigation with support for breakout room logic. It shows page numbers, controls access to breakout rooms based on the user level, and provides customizable layout and styling options.

    Properties to configure the Pagination component.

    Total number of pages.

    Current page number for the user.

    Function to handle page changes.

    Horizontal alignment of pagination.

    Vertical alignment of pagination.

    Direction of pagination (horizontal or vertical).

    Custom styles for the pagination container.

    Custom styles for the active page.

    Custom styles for inactive pages.

    Background color for the pagination container.

    Height of the pagination container.

    Flag to display the pagination aspect.

    Parameters necessary for pagination and breakout room logic.

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

    function App() {
    const parameters = {
    mainRoomsLength: 3,
    memberRoom: 1,
    breakOutRoomStarted: true,
    breakOutRoomEnded: false,
    member: 'John Doe',
    breakoutRooms: [/* array of breakout room participants * /],
    hostNewRoom: 2,
    roomName: 'Room A',
    islevel: '2',
    showAlert: (alert) => console.log(alert.message),
    socket: /* Socket connection * /,
    getUpdatedAllParams: () => parameters,
    };

    return (
    <Pagination
    totalPages={10}
    currentUserPage={1}
    parameters={parameters}
    backgroundColor="lightgray"
    paginationHeight={50}
    direction="horizontal"
    position="middle"
    location="bottom"
    />
    );
    }

    export default App;