expo-router
Version:
Expo Router is a file-based router for React Native and web applications.
29 lines (27 loc) • 653 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "isModalPresentation", {
enumerable: true,
get: function() {
return isModalPresentation;
}
});
const MODAL_PRESENTATIONS = [
'modal',
'transparentModal',
'fullScreenModal',
'formSheet',
'pageSheet',
'containedModal',
'containedTransparentModal'
];
function isModalPresentation(options) {
const presentation = options?.presentation;
if (!presentation) {
return false;
}
return MODAL_PRESENTATIONS.includes(presentation);
}
//# sourceMappingURL=stackPresentation.js.map