Files
Fluxup_PAP/node_modules/expo-router/build/utils/stackPresentation.js
2026-03-10 16:18:05 +00:00

28 lines
791 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isModalPresentation = isModalPresentation;
const MODAL_PRESENTATIONS = [
'modal',
'transparentModal',
'fullScreenModal',
'formSheet',
'pageSheet',
'containedModal',
'containedTransparentModal',
];
/**
* Helper to determine if a given screen should be treated as a modal-type presentation
*
* @param options - The navigation options.
* @returns Whether the screen should be treated as a modal-type presentation.
*
* @internal
*/
function isModalPresentation(options) {
const presentation = options?.presentation;
if (!presentation) {
return false;
}
return MODAL_PRESENTATIONS.includes(presentation);
}
//# sourceMappingURL=stackPresentation.js.map