one
Version:
One is a new React Framework that makes Vite serve both native and web.
12 lines (11 loc) • 442 B
JavaScript
import { createNavigatorFactory } from "@react-navigation/core";
import { isValidElement } from "react";
const {
Group
} = createNavigatorFactory({})(),
Protected = Group;
function isProtectedElement(child) {
return !!(isValidElement(child) && child.type === Group && child.props && typeof child.props == "object" && "guard" in child.props);
}
export { Group, Protected, isProtectedElement };
//# sourceMappingURL=Protected.mjs.map