MediaSFU React Native
    Preparing search index...

    Function getModalPosition

    • Gets the style for positioning a modal based on the specified position.

      Parameters

      Returns ModalPositionStyle

      • The style object for positioning the modal.
      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" }