UNPKG

one

Version:

One is a new React Framework that makes Vite serve both native and web.

17 lines (15 loc) 611 B
import { createNavigatorFactory } from "@react-navigation/core"; import { isValidElement } from "react"; function _type_of(obj) { "@swc/helpers - typeof"; return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj; } var { Group } = createNavigatorFactory({})(), Protected = Group; function isProtectedElement(child) { return !!(/* @__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