UNPKG

mediasfu-reactnative-expo

Version:

mediasfu-reactnative-expo – Expo-managed React Native WebRTC SDK for video conferencing, webinars, live streaming, broadcast, screen sharing, whiteboard, chat, recording, live subtitles, translation, and AI agent rooms on iOS, Android, and web. Prebuilt r

22 lines 861 B
import { getModalPosition as sharedGetModalPosition } from 'mediasfu-shared'; /** * Gets the style for positioning a modal based on the specified position. * * @param {GetModalPositionOptions} options - Configuration options specifying the modal position. * @returns {ModalPositionStyle} - The style object for positioning the modal. * * @example * ```typescript * const centerStyle = getModalPosition({ position: "center" }); * console.log(centerStyle); * // Output: { justifyContent: "center", alignItems: "center" } * * const topLeftStyle = getModalPosition({ position: "topLeft" }); * console.log(topLeftStyle); * // Output: { justifyContent: "flex-start", alignItems: "flex-start" } * ``` */ export const getModalPosition = ({ position }) => { return sharedGetModalPosition({ position }); }; //# sourceMappingURL=getModalPosition.js.map