one
Version:
One is a new React Framework that makes Vite serve both native and web.
15 lines (14 loc) • 441 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.js.map