Const
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;
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.