one
Version:
One is a new React Framework that makes Vite serve both native and web.
21 lines (19 loc) • 749 B
JavaScript
import { createNavigatorFactory } from "@react-navigation/core";
import { isValidElement } from "react";
import { NAVIGATOR_CONFIG } from "../headless/children.native.js";
function _type_of(obj) {
"@swc/helpers - typeof";
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
}
var {
Group
} = createNavigatorFactory({})();
var Protected = Group;
Object.assign(Protected, {
[NAVIGATOR_CONFIG]: true
});
function isProtectedElement(child) {
return Boolean(/* @__PURE__ */isValidElement(child) && child.type === Group && child.props && _type_of(child.props) === "object" && "guard" in child.props);
}
export { Group, Protected, isProtectedElement };
//# sourceMappingURL=Protected.native.js.map