one 2.14.1 → 2.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Root.cjs +6 -1
- package/dist/cjs/Root.native.cjs +6 -1
- package/dist/cjs/Root.native.js +6 -1
- package/dist/cjs/Root.native.js.map +1 -1
- package/dist/cjs/cli/prebuild.cjs +8 -4
- package/dist/cjs/cli/prebuild.native.cjs +8 -4
- package/dist/cjs/cli/prebuild.native.js +8 -4
- package/dist/cjs/cli/prebuild.native.js.map +1 -1
- package/dist/cjs/platform/launchScreen/index.native.cjs +15 -1
- package/dist/cjs/platform/launchScreen/index.native.js +15 -1
- package/dist/cjs/platform/launchScreen/index.native.js.map +1 -1
- package/dist/cjs/router/LaunchScreenRelease.cjs +26 -0
- package/dist/cjs/router/LaunchScreenRelease.native.cjs +35 -0
- package/dist/cjs/router/LaunchScreenRelease.native.js +37 -0
- package/dist/cjs/router/LaunchScreenRelease.native.js.map +1 -0
- package/dist/esm/Root.mjs +6 -1
- package/dist/esm/Root.mjs.map +1 -1
- package/dist/esm/Root.native.js +6 -1
- package/dist/esm/Root.native.js.map +1 -1
- package/dist/esm/cli/prebuild.mjs +8 -4
- package/dist/esm/cli/prebuild.mjs.map +1 -1
- package/dist/esm/cli/prebuild.native.js +8 -4
- package/dist/esm/cli/prebuild.native.js.map +1 -1
- package/dist/esm/platform/launchScreen/index.native.js +11 -1
- package/dist/esm/platform/launchScreen/index.native.js.map +1 -1
- package/dist/esm/router/LaunchScreenRelease.mjs +6 -0
- package/dist/esm/router/LaunchScreenRelease.mjs.map +1 -0
- package/dist/esm/router/LaunchScreenRelease.native.js +14 -0
- package/dist/esm/router/LaunchScreenRelease.native.js.map +1 -0
- package/native-core/host/OneHostRuntime.cpp +0 -13
- package/package.json +16 -16
- package/src/Root.tsx +2 -0
- package/src/cli/prebuild.ts +4 -4
- package/src/native/appManifest.ts +1 -0
- package/src/native/index.ts +1 -0
- package/src/platform/launchScreen/index.native.ts +13 -0
- package/src/router/LaunchScreenRelease.native.tsx +20 -0
- package/src/router/LaunchScreenRelease.tsx +4 -0
- package/types/Root.d.ts.map +1 -1
- package/types/native/appManifest.d.ts +1 -1
- package/types/native/appManifest.d.ts.map +1 -1
- package/types/native/index.d.ts +1 -1
- package/types/native/index.d.ts.map +1 -1
- package/types/platform/launchScreen/index.native.d.ts +2 -0
- package/types/platform/launchScreen/index.native.d.ts.map +1 -1
- package/types/router/LaunchScreenRelease.d.ts +2 -0
- package/types/router/LaunchScreenRelease.d.ts.map +1 -0
- package/types/router/LaunchScreenRelease.native.d.ts +2 -0
- package/types/router/LaunchScreenRelease.native.d.ts.map +1 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Root.native.js","names":["UpstreamNavigationContainer","_Fragment"],"sources":["esm/Root.native.js"],"sourcesContent":["import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from \"react/jsx-runtime\";\nimport { DarkTheme, DefaultTheme } from \"./fork/theme\";\nimport { useUserScheme } from \"@vxrn/color-scheme\";\nimport { createContext, StrictMode, useContext, useId, useLayoutEffect, useState } from \"react\";\nimport { SERVER_CONTEXT_KEY, isNative } from \"./constants\";\nimport { initScreensFeatureFlags } from \"./screensFeatureFlags\";\nimport { SpaShellContext } from \"./router/SpaShellContext\";\nimport { NavigationContainer as UpstreamNavigationContainer } from \"./fork/NavigationContainer\";\nimport { getURL } from \"./getURL\";\nimport { FlagsContext } from \"./router/FlagsContext\";\nimport { getResolvedLinking } from \"./router/linkingConfig\";\nimport { handleNavigationContainerStateChange } from \"./router/router\";\nimport { ServerLocationContext } from \"./router/serverLocationContext\";\nimport { useInitializeOneRouter } from \"./router/useInitializeOneRouter\";\nimport { useViteRoutes } from \"./router/useViteRoutes\";\nimport { evictOldest } from \"./utils/evictOldest\";\nimport { ServerRenderID } from \"./useServerHeadInsertion\";\nimport { PreloadLinks } from \"./views/PreloadLinks\";\nimport { SafeAreaProvider, initialWindowMetrics } from \"./safe-area-context\";\nimport { RootErrorBoundary } from \"./views/RootErrorBoundary\";\nimport { ScrollBehavior } from \"./views/ScrollBehavior\";\nvar ssrLocationCache = /* @__PURE__ */ new Map();\nfunction getCachedSSRLocation(path) {\n var url = ssrLocationCache.get(path);\n if (url) return url;\n url = new URL(path, getURL());\n evictOldest(ssrLocationCache, 5e3, 1e3);\n ssrLocationCache.set(path, url);\n return url;\n}\nvar ServerAsyncLocalIDContext = /* @__PURE__ */ createContext(null);\nfunction Root(props) {\n var _globalThis___vxrnrequestAsyncLocalStore;\n globalThis[\"__vxrnGetContextFromReactContext\"] = function() {\n return useContext(ServerAsyncLocalIDContext);\n };\n if (isNative) {\n initScreensFeatureFlags();\n }\n var { path, routes, routeOptions, isClient, navigationContainerProps, onRenderId, linking } = props;\n var context = useViteRoutes(routes, props.routerRoot, routeOptions, globalThis[\"__vxrnVersion\"]);\n var location = isNative ? void 0 : typeof window !== \"undefined\" && window.location ? new URL(path || window.location.href || \"/\", window.location.href) : getCachedSSRLocation(path || \"/\");\n var store = useInitializeOneRouter(context, location, linking);\n var userScheme = useUserScheme();\n var Component = store.rootComponent;\n if (!Component) {\n throw new Error(`No root component found`);\n }\n var id = useId();\n onRenderId === null || onRenderId === void 0 ? void 0 : onRenderId(id);\n var value = process.env.VERCEL ? globalThis[\"__oneGlobalContextId\"] : ((_globalThis___vxrnrequestAsyncLocalStore = globalThis[\"__vxrnrequestAsyncLocalStore\"]) === null || _globalThis___vxrnrequestAsyncLocalStore === void 0 ? void 0 : _globalThis___vxrnrequestAsyncLocalStore.getStore()) || null;\n var deferredPreloads = props.deferredPreloads;\n var contents = /* @__PURE__ */ _jsx(ServerAsyncLocalIDContext.Provider, {\n value,\n children: /* @__PURE__ */ _jsxs(ServerRenderID.Provider, {\n value: id,\n children: [\n typeof window === \"undefined\" && (deferredPreloads === null || deferredPreloads === void 0 ? void 0 : deferredPreloads.map(function(src) {\n return /* @__PURE__ */ _jsx(\"link\", {\n rel: \"modulepreload\",\n fetchPriority: \"low\",\n href: src\n }, src);\n })),\n /* one owns the safe area provider on every platform: apps read it\n through One.UI.SafeArea and never mount their own */\n /* @__PURE__ */ _jsx(SafeAreaProvider, {\n initialMetrics: initialWindowMetrics,\n children: /* @__PURE__ */ _jsx(UpstreamNavigationContainer, {\n ref: store.navigationRef,\n initialState: store.initialState,\n linking: getResolvedLinking(),\n onUnhandledAction,\n onStateChange: handleNavigationContainerStateChange,\n theme: userScheme.value === \"dark\" ? DarkTheme : DefaultTheme,\n documentTitle: {\n enabled: false\n },\n ...navigationContainerProps,\n children: /* @__PURE__ */ _jsx(ServerLocationContext.Provider, {\n value: location,\n children: /* @__PURE__ */ _jsxs(_Fragment, {\n children: [\n /* @__PURE__ */ _jsx(ScrollBehavior, {}),\n /* @__PURE__ */ _jsx(RootErrorBoundary, {\n children: /* @__PURE__ */ _jsx(Component, {})\n })\n ]\n })\n })\n })\n }),\n typeof window !== \"undefined\" && /* @__PURE__ */ _jsx(PreloadLinks, {}, \"preload-links\")\n ]\n })\n });\n if (props.flags) {\n contents = /* @__PURE__ */ _jsx(FlagsContext.Provider, {\n value: props.flags,\n children: contents\n });\n }\n if (!process.env.ONE_DISABLE_STRICT_MODE) {\n contents = /* @__PURE__ */ _jsx(StrictMode, {\n children: contents\n });\n }\n if (isClient) {\n var _globalThis_SERVER_CONTEXT_KEY;\n var serverMode = (_globalThis_SERVER_CONTEXT_KEY = globalThis[SERVER_CONTEXT_KEY]) === null || _globalThis_SERVER_CONTEXT_KEY === void 0 ? void 0 : _globalThis_SERVER_CONTEXT_KEY.mode;\n if (serverMode === \"spa\") {\n var [show, setShow] = useState(false);\n useLayoutEffect(function() {\n setShow(true);\n }, []);\n return show ? contents : null;\n }\n if (serverMode === \"spa-shell\") {\n var [isSpaShell, setIsSpaShell] = useState(true);\n useLayoutEffect(function() {\n setIsSpaShell(false);\n }, []);\n useLayoutEffect(function() {\n if (!isSpaShell) {\n var initialPath = window.location.pathname + window.location.search;\n requestAnimationFrame(function() {\n var _store_navigationRef;\n if (window.location.pathname + window.location.search !== initialPath) return;\n if (store.lastIntendedPathname !== void 0) return;\n var nav = (_store_navigationRef = store.navigationRef) === null || _store_navigationRef === void 0 ? void 0 : _store_navigationRef.current;\n if (!nav) return;\n var linking2 = getResolvedLinking();\n if (linking2 === null || linking2 === void 0 ? void 0 : linking2.getStateFromPath) {\n var freshState = linking2.getStateFromPath(initialPath, linking2.config);\n if (freshState) {\n nav.resetRoot(freshState);\n }\n }\n });\n }\n }, [\n isSpaShell\n ]);\n return /* @__PURE__ */ _jsx(SpaShellContext.Provider, {\n value: isSpaShell,\n children: contents\n });\n }\n return contents;\n }\n if (props.mode === \"spa-shell\") {\n return /* @__PURE__ */ _jsx(SpaShellContext.Provider, {\n value: true,\n children: contents\n });\n }\n return contents;\n}\nvar onUnhandledAction;\nif (process.env.NODE_ENV !== \"production\") {\n onUnhandledAction = function onUnhandledAction2(action) {\n var payload = action.payload;\n var message = `The action '${action.type}'${payload ? ` with payload ${JSON.stringify(action.payload)}` : \"\"} was not handled by any navigator.`;\n switch (action.type) {\n case \"NAVIGATE\":\n case \"PUSH\":\n case \"REPLACE\":\n case \"JUMP_TO\":\n if (payload === null || payload === void 0 ? void 0 : payload.name) {\n message += `\n\nDo you have a route named '${payload.name}'?`;\n } else {\n message += `\n\nYou need to pass the name of the screen to navigate to. This may be a bug.`;\n }\n break;\n case \"GO_BACK\":\n case \"POP\":\n case \"POP_TO_TOP\":\n message += `\n\nIs there any screen to go back to?`;\n break;\n case \"OPEN_DRAWER\":\n case \"CLOSE_DRAWER\":\n case \"TOGGLE_DRAWER\":\n message += `\n\nIs your screen inside a Drawer navigator?`;\n break;\n }\n message += `\n\nThis is a development-only warning and won't be shown in production.`;\n if (process.env.NODE_ENV === \"test\") {\n throw new Error(message);\n }\n console.error(message);\n };\n} else {\n onUnhandledAction = function onUnhandledAction2() {\n };\n}\nexport {\n Root\n};\n//# sourceMappingURL=Root.js.map\n"],"mappings":";;;;;;;;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AEQ,QAAQ,KAAK;IAClC,OAAO;KACL,WAAW;;;IAGb;IACA;GACF,KAAK;GACL,KAAK;GACL,KAAK;IACH,WAAW;;;IAGX;GACF,KAAK;GACL,KAAK;GACL,KAAK;IACH,WAAW;;;IAGX;EACJ;EACA,WAAW;;;EAGX,IAAI,QAAQ,IAAI,aAAa,QAAQ;GACnC,MAAM,IAAI,MAAM,OAAO;EACzB;EACA,QAAQ,MAAM,OAAO;CACvB;AACF,OAAO;CACL,oBAAoB,SAAS,qBAAqB,CAClD;AACF"}
|
|
1
|
+
{"version":3,"file":"Root.native.js","names":["UpstreamNavigationContainer","_Fragment"],"sources":["esm/Root.native.js"],"sourcesContent":["import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from \"react/jsx-runtime\";\nimport { DarkTheme, DefaultTheme } from \"./fork/theme\";\nimport { useUserScheme } from \"@vxrn/color-scheme\";\nimport { createContext, StrictMode, useContext, useId, useLayoutEffect, useState } from \"react\";\nimport { SERVER_CONTEXT_KEY, isNative } from \"./constants\";\nimport { initScreensFeatureFlags } from \"./screensFeatureFlags\";\nimport { SpaShellContext } from \"./router/SpaShellContext\";\nimport { NavigationContainer as UpstreamNavigationContainer } from \"./fork/NavigationContainer\";\nimport { getURL } from \"./getURL\";\nimport { FlagsContext } from \"./router/FlagsContext\";\nimport { getResolvedLinking } from \"./router/linkingConfig\";\nimport { handleNavigationContainerStateChange } from \"./router/router\";\nimport { ServerLocationContext } from \"./router/serverLocationContext\";\nimport { LaunchScreenRelease } from \"./router/LaunchScreenRelease\";\nimport { useInitializeOneRouter } from \"./router/useInitializeOneRouter\";\nimport { useViteRoutes } from \"./router/useViteRoutes\";\nimport { evictOldest } from \"./utils/evictOldest\";\nimport { ServerRenderID } from \"./useServerHeadInsertion\";\nimport { PreloadLinks } from \"./views/PreloadLinks\";\nimport { SafeAreaProvider, initialWindowMetrics } from \"./safe-area-context\";\nimport { RootErrorBoundary } from \"./views/RootErrorBoundary\";\nimport { ScrollBehavior } from \"./views/ScrollBehavior\";\nvar ssrLocationCache = /* @__PURE__ */ new Map();\nfunction getCachedSSRLocation(path) {\n var url = ssrLocationCache.get(path);\n if (url) return url;\n url = new URL(path, getURL());\n evictOldest(ssrLocationCache, 5e3, 1e3);\n ssrLocationCache.set(path, url);\n return url;\n}\nvar ServerAsyncLocalIDContext = /* @__PURE__ */ createContext(null);\nfunction Root(props) {\n var _globalThis___vxrnrequestAsyncLocalStore;\n globalThis[\"__vxrnGetContextFromReactContext\"] = function() {\n return useContext(ServerAsyncLocalIDContext);\n };\n if (isNative) {\n initScreensFeatureFlags();\n }\n var { path, routes, routeOptions, isClient, navigationContainerProps, onRenderId, linking } = props;\n var context = useViteRoutes(routes, props.routerRoot, routeOptions, globalThis[\"__vxrnVersion\"]);\n var location = isNative ? void 0 : typeof window !== \"undefined\" && window.location ? new URL(path || window.location.href || \"/\", window.location.href) : getCachedSSRLocation(path || \"/\");\n var store = useInitializeOneRouter(context, location, linking);\n var userScheme = useUserScheme();\n var Component = store.rootComponent;\n if (!Component) {\n throw new Error(`No root component found`);\n }\n var id = useId();\n onRenderId === null || onRenderId === void 0 ? void 0 : onRenderId(id);\n var value = process.env.VERCEL ? globalThis[\"__oneGlobalContextId\"] : ((_globalThis___vxrnrequestAsyncLocalStore = globalThis[\"__vxrnrequestAsyncLocalStore\"]) === null || _globalThis___vxrnrequestAsyncLocalStore === void 0 ? void 0 : _globalThis___vxrnrequestAsyncLocalStore.getStore()) || null;\n var deferredPreloads = props.deferredPreloads;\n var contents = /* @__PURE__ */ _jsx(ServerAsyncLocalIDContext.Provider, {\n value,\n children: /* @__PURE__ */ _jsxs(ServerRenderID.Provider, {\n value: id,\n children: [\n typeof window === \"undefined\" && (deferredPreloads === null || deferredPreloads === void 0 ? void 0 : deferredPreloads.map(function(src) {\n return /* @__PURE__ */ _jsx(\"link\", {\n rel: \"modulepreload\",\n fetchPriority: \"low\",\n href: src\n }, src);\n })),\n /* one owns the safe area provider on every platform: apps read it\n through One.UI.SafeArea and never mount their own */\n /* @__PURE__ */ _jsx(SafeAreaProvider, {\n initialMetrics: initialWindowMetrics,\n children: /* @__PURE__ */ _jsx(UpstreamNavigationContainer, {\n ref: store.navigationRef,\n initialState: store.initialState,\n linking: getResolvedLinking(),\n onUnhandledAction,\n onStateChange: handleNavigationContainerStateChange,\n theme: userScheme.value === \"dark\" ? DarkTheme : DefaultTheme,\n documentTitle: {\n enabled: false\n },\n ...navigationContainerProps,\n children: /* @__PURE__ */ _jsx(ServerLocationContext.Provider, {\n value: location,\n children: /* @__PURE__ */ _jsxs(_Fragment, {\n children: [\n /* @__PURE__ */ _jsx(ScrollBehavior, {}),\n /* @__PURE__ */ _jsx(RootErrorBoundary, {\n children: /* @__PURE__ */ _jsx(Component, {})\n }),\n /* @__PURE__ */ _jsx(LaunchScreenRelease, {})\n ]\n })\n })\n })\n }),\n typeof window !== \"undefined\" && /* @__PURE__ */ _jsx(PreloadLinks, {}, \"preload-links\")\n ]\n })\n });\n if (props.flags) {\n contents = /* @__PURE__ */ _jsx(FlagsContext.Provider, {\n value: props.flags,\n children: contents\n });\n }\n if (!process.env.ONE_DISABLE_STRICT_MODE) {\n contents = /* @__PURE__ */ _jsx(StrictMode, {\n children: contents\n });\n }\n if (isClient) {\n var _globalThis_SERVER_CONTEXT_KEY;\n var serverMode = (_globalThis_SERVER_CONTEXT_KEY = globalThis[SERVER_CONTEXT_KEY]) === null || _globalThis_SERVER_CONTEXT_KEY === void 0 ? void 0 : _globalThis_SERVER_CONTEXT_KEY.mode;\n if (serverMode === \"spa\") {\n var [show, setShow] = useState(false);\n useLayoutEffect(function() {\n setShow(true);\n }, []);\n return show ? contents : null;\n }\n if (serverMode === \"spa-shell\") {\n var [isSpaShell, setIsSpaShell] = useState(true);\n useLayoutEffect(function() {\n setIsSpaShell(false);\n }, []);\n useLayoutEffect(function() {\n if (!isSpaShell) {\n var initialPath = window.location.pathname + window.location.search;\n requestAnimationFrame(function() {\n var _store_navigationRef;\n if (window.location.pathname + window.location.search !== initialPath) return;\n if (store.lastIntendedPathname !== void 0) return;\n var nav = (_store_navigationRef = store.navigationRef) === null || _store_navigationRef === void 0 ? void 0 : _store_navigationRef.current;\n if (!nav) return;\n var linking2 = getResolvedLinking();\n if (linking2 === null || linking2 === void 0 ? void 0 : linking2.getStateFromPath) {\n var freshState = linking2.getStateFromPath(initialPath, linking2.config);\n if (freshState) {\n nav.resetRoot(freshState);\n }\n }\n });\n }\n }, [\n isSpaShell\n ]);\n return /* @__PURE__ */ _jsx(SpaShellContext.Provider, {\n value: isSpaShell,\n children: contents\n });\n }\n return contents;\n }\n if (props.mode === \"spa-shell\") {\n return /* @__PURE__ */ _jsx(SpaShellContext.Provider, {\n value: true,\n children: contents\n });\n }\n return contents;\n}\nvar onUnhandledAction;\nif (process.env.NODE_ENV !== \"production\") {\n onUnhandledAction = function onUnhandledAction2(action) {\n var payload = action.payload;\n var message = `The action '${action.type}'${payload ? ` with payload ${JSON.stringify(action.payload)}` : \"\"} was not handled by any navigator.`;\n switch (action.type) {\n case \"NAVIGATE\":\n case \"PUSH\":\n case \"REPLACE\":\n case \"JUMP_TO\":\n if (payload === null || payload === void 0 ? void 0 : payload.name) {\n message += `\n\nDo you have a route named '${payload.name}'?`;\n } else {\n message += `\n\nYou need to pass the name of the screen to navigate to. This may be a bug.`;\n }\n break;\n case \"GO_BACK\":\n case \"POP\":\n case \"POP_TO_TOP\":\n message += `\n\nIs there any screen to go back to?`;\n break;\n case \"OPEN_DRAWER\":\n case \"CLOSE_DRAWER\":\n case \"TOGGLE_DRAWER\":\n message += `\n\nIs your screen inside a Drawer navigator?`;\n break;\n }\n message += `\n\nThis is a development-only warning and won't be shown in production.`;\n if (process.env.NODE_ENV === \"test\") {\n throw new Error(message);\n }\n console.error(message);\n };\n} else {\n onUnhandledAction = function onUnhandledAction2() {\n };\n}\nexport {\n Root\n};\n//# sourceMappingURL=Root.js.map\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAsBA,IAAI,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;6BAEQ,QAAQ,KAAK;IAClC,OAAO;KACL,WAAW;;;IAGb;IACA;GACF,KAAK;GACL,KAAK;GACL,KAAK;IACH,WAAW;;;IAGX;GACF,KAAK;GACL,KAAK;GACL,KAAK;IACH,WAAW;;;IAGX;EACJ;EACA,WAAW;;;EAGX,IAAI,QAAQ,IAAI,aAAa,QAAQ;GACnC,MAAM,IAAI,MAAM,OAAO;EACzB;EACA,QAAQ,MAAM,OAAO;CACvB;AACF,OAAO;CACL,oBAAoB,SAAS,qBAAqB,CAClD;AACF"}
|
|
@@ -48,7 +48,7 @@ async function run(args) {
|
|
|
48
48
|
app,
|
|
49
49
|
beforeInstall: args.platform === "android" ? void 0 : async () => {
|
|
50
50
|
if (args.platform !== "ios" && !xcrunAvailable()) {
|
|
51
|
-
console.warn("[one]
|
|
51
|
+
console.warn("[one] the iOS SDK is not available (xcrun found no iphonesimulator SDK), so iOS SDK generation was skipped");
|
|
52
52
|
return;
|
|
53
53
|
}
|
|
54
54
|
await writeIosSdk(root);
|
|
@@ -58,10 +58,14 @@ async function run(args) {
|
|
|
58
58
|
}
|
|
59
59
|
function xcrunAvailable() {
|
|
60
60
|
try {
|
|
61
|
-
execFileSync("xcrun", [
|
|
61
|
+
execFileSync("xcrun", [
|
|
62
|
+
"--sdk",
|
|
63
|
+
"iphonesimulator",
|
|
64
|
+
"--show-sdk-path"
|
|
65
|
+
], { stdio: "ignore" });
|
|
62
66
|
return true;
|
|
63
|
-
} catch
|
|
64
|
-
return
|
|
67
|
+
} catch {
|
|
68
|
+
return false;
|
|
65
69
|
}
|
|
66
70
|
}
|
|
67
71
|
const sdkDirectory = typeof __dirname === "string" ? join(__dirname, "..", "..", "sdk") : join(dirname(fileURLToPath(import.meta.url)), "..", "..", "sdk");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prebuild.js","names":[],"sources":["esm/cli/prebuild.js"],"sourcesContent":["import { execFileSync } from \"node:child_process\";\nimport { existsSync, readFileSync, writeFileSync } from \"node:fs\";\nimport { dirname, join, resolve } from \"node:path\";\nimport { fileURLToPath, pathToFileURL } from \"node:url\";\nimport { validateNativeApp } from \"../native/appManifest\";\nimport { writeIosLinkSet } from \"./iosLinkSet\";\nimport { loadUserOneOptions } from \"../vite/loadConfig\";\nconst REACT_NATIVE_CONFIG = `module.exports = require('one/react-native-config')\n`;\nconst REACT_NATIVE_CONFIG_NAMES = [\n \"react-native.config.js\",\n \"react-native.config.cjs\",\n \"react-native.config.mjs\",\n \"react-native.config.ts\"\n];\nasync function run(args) {\n const root = process.cwd();\n const packageJson = JSON.parse(readFileSync(join(root, \"package.json\"), \"utf8\"));\n const hasExpo = Object.hasOwn(packageJson.dependencies ?? {}, \"expo\") || Object.hasOwn(packageJson.devDependencies ?? {}, \"expo\");\n if (hasExpo) {\n throw new Error(\n '[one] one prebuild only generates Expo-free projects. This app declares expo; run Expo prebuild and list \"vxrn/expo-plugin\" in the Expo config.'\n );\n }\n const { oneOptions } = await loadUserOneOptions(\"build\", true);\n const native = oneOptions?.native;\n const app = typeof native === \"object\" ? native.app : void 0;\n if (!app) {\n throw new Error(\n \"[one] native.app is required: configure one({ native: { app } }) with name, ios.bundleId, and android.applicationId\"\n );\n }\n validateNativeApp(app, args.platform);\n if ((app.ios?.backgroundTasks || app.ios?.appIntents) && args.platform !== \"android\") {\n const configured = oneOptions?.setupFile;\n const setupFile = typeof configured === \"string\" ? configured : configured && \"native\" in configured ? configured.native : configured && \"ios\" in configured ? configured.ios : void 0;\n if (!setupFile || !existsSync(resolve(root, setupFile))) {\n throw new Error(\n app.ios?.backgroundTasks ? \"[one] native.app.ios.backgroundTasks requires an existing iOS native setupFile that defines every task handler before the app renders\" : \"[one] native.app.ios.appIntents requires an existing iOS native setupFile that defines every action handler before the app renders\"\n );\n }\n }\n const present = REACT_NATIVE_CONFIG_NAMES.filter((name) => existsSync(join(root, name)));\n if (present.length === 0) {\n writeFileSync(join(root, \"react-native.config.cjs\"), REACT_NATIVE_CONFIG);\n } else if (!present.some(\n (name) => readFileSync(join(root, name), \"utf8\").includes(\"one/react-native-config\")\n )) {\n throw new Error(\n `[one] ${present.join(\", \")} does not load one/react-native-config, so Release builds would run the stock React Native bundler instead of One's. Set it to \\`module.exports = require('one/react-native-config')\\` or spread that into your config, then re-run one prebuild.`\n );\n }\n const { prebuild } = await import(\"vxrn\");\n await prebuild({\n root: process.cwd(),\n ...args,\n app,\n beforeInstall: args.platform === \"android\" ? void 0 : async () => {\n if (args.platform !== \"ios\" && !xcrunAvailable()) {\n console.warn(\"[one]
|
|
1
|
+
{"version":3,"file":"prebuild.js","names":[],"sources":["esm/cli/prebuild.js"],"sourcesContent":["import { execFileSync } from \"node:child_process\";\nimport { existsSync, readFileSync, writeFileSync } from \"node:fs\";\nimport { dirname, join, resolve } from \"node:path\";\nimport { fileURLToPath, pathToFileURL } from \"node:url\";\nimport { validateNativeApp } from \"../native/appManifest\";\nimport { writeIosLinkSet } from \"./iosLinkSet\";\nimport { loadUserOneOptions } from \"../vite/loadConfig\";\nconst REACT_NATIVE_CONFIG = `module.exports = require('one/react-native-config')\n`;\nconst REACT_NATIVE_CONFIG_NAMES = [\n \"react-native.config.js\",\n \"react-native.config.cjs\",\n \"react-native.config.mjs\",\n \"react-native.config.ts\"\n];\nasync function run(args) {\n const root = process.cwd();\n const packageJson = JSON.parse(readFileSync(join(root, \"package.json\"), \"utf8\"));\n const hasExpo = Object.hasOwn(packageJson.dependencies ?? {}, \"expo\") || Object.hasOwn(packageJson.devDependencies ?? {}, \"expo\");\n if (hasExpo) {\n throw new Error(\n '[one] one prebuild only generates Expo-free projects. This app declares expo; run Expo prebuild and list \"vxrn/expo-plugin\" in the Expo config.'\n );\n }\n const { oneOptions } = await loadUserOneOptions(\"build\", true);\n const native = oneOptions?.native;\n const app = typeof native === \"object\" ? native.app : void 0;\n if (!app) {\n throw new Error(\n \"[one] native.app is required: configure one({ native: { app } }) with name, ios.bundleId, and android.applicationId\"\n );\n }\n validateNativeApp(app, args.platform);\n if ((app.ios?.backgroundTasks || app.ios?.appIntents) && args.platform !== \"android\") {\n const configured = oneOptions?.setupFile;\n const setupFile = typeof configured === \"string\" ? configured : configured && \"native\" in configured ? configured.native : configured && \"ios\" in configured ? configured.ios : void 0;\n if (!setupFile || !existsSync(resolve(root, setupFile))) {\n throw new Error(\n app.ios?.backgroundTasks ? \"[one] native.app.ios.backgroundTasks requires an existing iOS native setupFile that defines every task handler before the app renders\" : \"[one] native.app.ios.appIntents requires an existing iOS native setupFile that defines every action handler before the app renders\"\n );\n }\n }\n const present = REACT_NATIVE_CONFIG_NAMES.filter((name) => existsSync(join(root, name)));\n if (present.length === 0) {\n writeFileSync(join(root, \"react-native.config.cjs\"), REACT_NATIVE_CONFIG);\n } else if (!present.some(\n (name) => readFileSync(join(root, name), \"utf8\").includes(\"one/react-native-config\")\n )) {\n throw new Error(\n `[one] ${present.join(\", \")} does not load one/react-native-config, so Release builds would run the stock React Native bundler instead of One's. Set it to \\`module.exports = require('one/react-native-config')\\` or spread that into your config, then re-run one prebuild.`\n );\n }\n const { prebuild } = await import(\"vxrn\");\n await prebuild({\n root: process.cwd(),\n ...args,\n app,\n beforeInstall: args.platform === \"android\" ? void 0 : async () => {\n if (args.platform !== \"ios\" && !xcrunAvailable()) {\n console.warn(\"[one] the iOS SDK is not available (xcrun found no iphonesimulator SDK), so iOS SDK generation was skipped\");\n return;\n }\n await writeIosSdk(root);\n writeIosLinkSet(root);\n }\n });\n}\nfunction xcrunAvailable() {\n try {\n execFileSync(\"xcrun\", [\"--sdk\", \"iphonesimulator\", \"--show-sdk-path\"], { stdio: \"ignore\" });\n return true;\n } catch {\n return false;\n }\n}\nconst sdkDirectory = typeof __dirname === \"string\" ? join(__dirname, \"..\", \"..\", \"sdk\") : join(dirname(fileURLToPath(import.meta.url)), \"..\", \"..\", \"sdk\");\nasync function writeIosSdk(root) {\n const { writeAppSdkPod } = await import(pathToFileURL(join(sdkDirectory, \"app.mjs\")).href);\n await writeAppSdkPod(root);\n}\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AyB,CACrF,GAAG;EACD,MAAM,IAAI,MACR,SAAS,QAAQ,KAAK,IAAI,EAAE,kPAC9B;CACF;CACA,MAAM,EAAE,aAAa,MAAM,OAAO;CAClC,MAAM,SAAS;EACb,MAAM,QAAQ,IAAI;EAClB,GAAG;EACH;EACA,eAAe,KAAK,aAAa,YAAY,KAAK,IAAI,YAAY;GAChE,IAAI,KAAK,aAAa,SAAS,CAAC,eAAe,GAAG;IAChD,QAAQ,KAAK,4GAA4G;IACzH;GACF;GACA,MAAM,YAAY,IAAI;GACtB,gBAAgB,IAAI;EACtB;CACF,CAAC;AACH;AACA,SAAS,iBAAiB;CACxB,IAAI;EACF,aAAa,SAAS;GAAC;GAAS;GAAmB;EAAiB,GAAG,EAAE,OAAO,SAAS,CAAC;EAC1F,OAAO;CACT,QAAQ;EACN,OAAO;CACT;AACF;AACA,MAAM,eAAe,OAAO,cAAc,WAAW,KAAK,WAAW,MAAM,MAAM,KAAK,IAAI,KAAK,QAAQ,cAAc,YAAY,GAAG,CAAC,GAAG,MAAM,MAAM,KAAK;AACzJ,eAAe,YAAY,MAAM;CAC/B,MAAM,EAAE,mBAAmB,MAAM,OAAO,cAAc,KAAK,cAAc,SAAS,CAAC,CAAC,CAAC;CACrF,MAAM,eAAe,IAAI;AAC3B"}
|
|
@@ -55,7 +55,7 @@ async function run(args) {
|
|
|
55
55
|
app,
|
|
56
56
|
beforeInstall: args.platform === "android" ? void 0 : async function() {
|
|
57
57
|
if (args.platform !== "ios" && !xcrunAvailable()) {
|
|
58
|
-
console.warn("[one]
|
|
58
|
+
console.warn("[one] the iOS SDK is not available (xcrun found no iphonesimulator SDK), so iOS SDK generation was skipped");
|
|
59
59
|
return;
|
|
60
60
|
}
|
|
61
61
|
await writeIosSdk(root);
|
|
@@ -65,10 +65,14 @@ async function run(args) {
|
|
|
65
65
|
}
|
|
66
66
|
function xcrunAvailable() {
|
|
67
67
|
try {
|
|
68
|
-
execFileSync("xcrun", [
|
|
68
|
+
execFileSync("xcrun", [
|
|
69
|
+
"--sdk",
|
|
70
|
+
"iphonesimulator",
|
|
71
|
+
"--show-sdk-path"
|
|
72
|
+
], { stdio: "ignore" });
|
|
69
73
|
return true;
|
|
70
|
-
} catch (
|
|
71
|
-
return
|
|
74
|
+
} catch (unused) {
|
|
75
|
+
return false;
|
|
72
76
|
}
|
|
73
77
|
}
|
|
74
78
|
var sdkDirectory = typeof __dirname === "string" ? join(__dirname, "..", "..", "sdk") : join(dirname(fileURLToPath(import.meta.url)), "..", "..", "sdk");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prebuild.native.js","names":[],"sources":["esm/cli/prebuild.native.js"],"sourcesContent":["import { execFileSync } from \"child_process\";\nimport { existsSync, readFileSync, writeFileSync } from \"fs\";\nimport { dirname, join, resolve } from \"path\";\nimport { fileURLToPath, pathToFileURL } from \"url\";\nimport { validateNativeApp } from \"../native/appManifest\";\nimport { writeIosLinkSet } from \"./iosLinkSet\";\nimport { loadUserOneOptions } from \"../vite/loadConfig\";\nvar REACT_NATIVE_CONFIG = `module.exports = require('one/react-native-config')\n`;\nvar REACT_NATIVE_CONFIG_NAMES = [\n \"react-native.config.js\",\n \"react-native.config.cjs\",\n \"react-native.config.mjs\",\n \"react-native.config.ts\"\n];\nasync function run(args) {\n var _packageJson_dependencies, _packageJson_devDependencies;\n var _app_ios, _app_ios1;\n var root = process.cwd();\n var packageJson = JSON.parse(readFileSync(join(root, \"package.json\"), \"utf8\"));\n var hasExpo = Object.hasOwn((_packageJson_dependencies = packageJson.dependencies) !== null && _packageJson_dependencies !== void 0 ? _packageJson_dependencies : {}, \"expo\") || Object.hasOwn((_packageJson_devDependencies = packageJson.devDependencies) !== null && _packageJson_devDependencies !== void 0 ? _packageJson_devDependencies : {}, \"expo\");\n if (hasExpo) {\n throw new Error('[one] one prebuild only generates Expo-free projects. This app declares expo; run Expo prebuild and list \"vxrn/expo-plugin\" in the Expo config.');\n }\n var { oneOptions } = await loadUserOneOptions(\"build\", true);\n var native = oneOptions === null || oneOptions === void 0 ? void 0 : oneOptions.native;\n var app = typeof native === \"object\" ? native.app : void 0;\n if (!app) {\n throw new Error(\"[one] native.app is required: configure one({ native: { app } }) with name, ios.bundleId, and android.applicationId\");\n }\n validateNativeApp(app, args.platform);\n if ((((_app_ios = app.ios) === null || _app_ios === void 0 ? void 0 : _app_ios.backgroundTasks) || ((_app_ios1 = app.ios) === null || _app_ios1 === void 0 ? void 0 : _app_ios1.appIntents)) && args.platform !== \"android\") {\n var configured = oneOptions === null || oneOptions === void 0 ? void 0 : oneOptions.setupFile;\n var setupFile = typeof configured === \"string\" ? configured : configured && \"native\" in configured ? configured.native : configured && \"ios\" in configured ? configured.ios : void 0;\n if (!setupFile || !existsSync(resolve(root, setupFile))) {\n var _app_ios2;\n throw new Error(((_app_ios2 = app.ios) === null || _app_ios2 === void 0 ? void 0 : _app_ios2.backgroundTasks) ? \"[one] native.app.ios.backgroundTasks requires an existing iOS native setupFile that defines every task handler before the app renders\" : \"[one] native.app.ios.appIntents requires an existing iOS native setupFile that defines every action handler before the app renders\");\n }\n }\n var present = REACT_NATIVE_CONFIG_NAMES.filter(function(name) {\n return existsSync(join(root, name));\n });\n if (present.length === 0) {\n writeFileSync(join(root, \"react-native.config.cjs\"), REACT_NATIVE_CONFIG);\n } else if (!present.some(function(name) {\n return readFileSync(join(root, name), \"utf8\").includes(\"one/react-native-config\");\n })) {\n throw new Error(`[one] ${present.join(\", \")} does not load one/react-native-config, so Release builds would run the stock React Native bundler instead of One's. Set it to \\`module.exports = require('one/react-native-config')\\` or spread that into your config, then re-run one prebuild.`);\n }\n var { prebuild } = await import(\"vxrn\");\n await prebuild({\n root: process.cwd(),\n ...args,\n app,\n beforeInstall: args.platform === \"android\" ? void 0 : async function() {\n if (args.platform !== \"ios\" && !xcrunAvailable()) {\n console.warn(\"[one]
|
|
1
|
+
{"version":3,"file":"prebuild.native.js","names":[],"sources":["esm/cli/prebuild.native.js"],"sourcesContent":["import { execFileSync } from \"child_process\";\nimport { existsSync, readFileSync, writeFileSync } from \"fs\";\nimport { dirname, join, resolve } from \"path\";\nimport { fileURLToPath, pathToFileURL } from \"url\";\nimport { validateNativeApp } from \"../native/appManifest\";\nimport { writeIosLinkSet } from \"./iosLinkSet\";\nimport { loadUserOneOptions } from \"../vite/loadConfig\";\nvar REACT_NATIVE_CONFIG = `module.exports = require('one/react-native-config')\n`;\nvar REACT_NATIVE_CONFIG_NAMES = [\n \"react-native.config.js\",\n \"react-native.config.cjs\",\n \"react-native.config.mjs\",\n \"react-native.config.ts\"\n];\nasync function run(args) {\n var _packageJson_dependencies, _packageJson_devDependencies;\n var _app_ios, _app_ios1;\n var root = process.cwd();\n var packageJson = JSON.parse(readFileSync(join(root, \"package.json\"), \"utf8\"));\n var hasExpo = Object.hasOwn((_packageJson_dependencies = packageJson.dependencies) !== null && _packageJson_dependencies !== void 0 ? _packageJson_dependencies : {}, \"expo\") || Object.hasOwn((_packageJson_devDependencies = packageJson.devDependencies) !== null && _packageJson_devDependencies !== void 0 ? _packageJson_devDependencies : {}, \"expo\");\n if (hasExpo) {\n throw new Error('[one] one prebuild only generates Expo-free projects. This app declares expo; run Expo prebuild and list \"vxrn/expo-plugin\" in the Expo config.');\n }\n var { oneOptions } = await loadUserOneOptions(\"build\", true);\n var native = oneOptions === null || oneOptions === void 0 ? void 0 : oneOptions.native;\n var app = typeof native === \"object\" ? native.app : void 0;\n if (!app) {\n throw new Error(\"[one] native.app is required: configure one({ native: { app } }) with name, ios.bundleId, and android.applicationId\");\n }\n validateNativeApp(app, args.platform);\n if ((((_app_ios = app.ios) === null || _app_ios === void 0 ? void 0 : _app_ios.backgroundTasks) || ((_app_ios1 = app.ios) === null || _app_ios1 === void 0 ? void 0 : _app_ios1.appIntents)) && args.platform !== \"android\") {\n var configured = oneOptions === null || oneOptions === void 0 ? void 0 : oneOptions.setupFile;\n var setupFile = typeof configured === \"string\" ? configured : configured && \"native\" in configured ? configured.native : configured && \"ios\" in configured ? configured.ios : void 0;\n if (!setupFile || !existsSync(resolve(root, setupFile))) {\n var _app_ios2;\n throw new Error(((_app_ios2 = app.ios) === null || _app_ios2 === void 0 ? void 0 : _app_ios2.backgroundTasks) ? \"[one] native.app.ios.backgroundTasks requires an existing iOS native setupFile that defines every task handler before the app renders\" : \"[one] native.app.ios.appIntents requires an existing iOS native setupFile that defines every action handler before the app renders\");\n }\n }\n var present = REACT_NATIVE_CONFIG_NAMES.filter(function(name) {\n return existsSync(join(root, name));\n });\n if (present.length === 0) {\n writeFileSync(join(root, \"react-native.config.cjs\"), REACT_NATIVE_CONFIG);\n } else if (!present.some(function(name) {\n return readFileSync(join(root, name), \"utf8\").includes(\"one/react-native-config\");\n })) {\n throw new Error(`[one] ${present.join(\", \")} does not load one/react-native-config, so Release builds would run the stock React Native bundler instead of One's. Set it to \\`module.exports = require('one/react-native-config')\\` or spread that into your config, then re-run one prebuild.`);\n }\n var { prebuild } = await import(\"vxrn\");\n await prebuild({\n root: process.cwd(),\n ...args,\n app,\n beforeInstall: args.platform === \"android\" ? void 0 : async function() {\n if (args.platform !== \"ios\" && !xcrunAvailable()) {\n console.warn(\"[one] the iOS SDK is not available (xcrun found no iphonesimulator SDK), so iOS SDK generation was skipped\");\n return;\n }\n await writeIosSdk(root);\n writeIosLinkSet(root);\n }\n });\n}\nfunction xcrunAvailable() {\n try {\n execFileSync(\"xcrun\", [\n \"--sdk\",\n \"iphonesimulator\",\n \"--show-sdk-path\"\n ], {\n stdio: \"ignore\"\n });\n return true;\n } catch (unused) {\n return false;\n }\n}\nvar sdkDirectory = typeof __dirname === \"string\" ? join(__dirname, \"..\", \"..\", \"sdk\") : join(dirname(fileURLToPath(import.meta.url)), \"..\", \"..\", \"sdk\");\nasync function writeIosSdk(root) {\n var { writeAppSdkPod } = await import(pathToFileURL(join(sdkDirectory, \"app.mjs\")).href);\n await writeAppSdkPod(root);\n}\nexport {\n run\n};\n//# sourceMappingURL=prebuild.js.map\n"],"mappings":";;;;;;;;;AAOA,I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|
5
5
|
var _ref;
|
|
6
6
|
var _readLaunchScreenConfig;
|
|
7
7
|
var hybrid;
|
|
8
|
+
var appHolds = false;
|
|
8
9
|
function native() {
|
|
9
10
|
hybrid !== null && hybrid !== void 0 ? hybrid : hybrid = NitroModules.createHybridObject("OneLaunchScreen");
|
|
10
11
|
return hybrid;
|
|
11
12
|
}
|
|
12
13
|
var LaunchScreen = Object.freeze({
|
|
13
14
|
preventAutoHide() {
|
|
15
|
+
appHolds = true;
|
|
14
16
|
native().preventAutoHide();
|
|
15
17
|
},
|
|
16
18
|
hide(options) {
|
|
@@ -20,6 +22,14 @@ var LaunchScreen = Object.freeze({
|
|
|
20
22
|
Cover,
|
|
21
23
|
artworkWidth: (_ref = (_readLaunchScreenConfig = readLaunchScreenConfig()) === null || _readLaunchScreenConfig === void 0 ? void 0 : _readLaunchScreenConfig.width) !== null && _ref !== void 0 ? _ref : null
|
|
22
24
|
});
|
|
25
|
+
function holdLaunchScreenForRouter() {
|
|
26
|
+
if (!NitroModules.hasHybridObject("OneLaunchScreen")) return false;
|
|
27
|
+
native().preventAutoHide();
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function releaseLaunchScreenForRouter() {
|
|
31
|
+
if (!appHolds) native().hide(false);
|
|
32
|
+
}
|
|
23
33
|
|
|
24
|
-
export { LaunchScreen };
|
|
34
|
+
export { LaunchScreen, holdLaunchScreenForRouter, releaseLaunchScreenForRouter };
|
|
25
35
|
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.js","names":[],"sources":["esm/platform/launchScreen/index.native.js"],"sourcesContent":["import { NitroModules } from \"react-native-nitro-modules\";\nimport { Cover } from \"./Cover.native\";\nimport { readLaunchScreenConfig } from \"./config\";\nvar _ref;\nvar _readLaunchScreenConfig;\nvar hybrid;\nfunction native() {\n hybrid !== null && hybrid !== void 0 ? hybrid : hybrid = NitroModules.createHybridObject(\"OneLaunchScreen\");\n return hybrid;\n}\nvar LaunchScreen = Object.freeze({\n preventAutoHide() {\n native().preventAutoHide();\n },\n hide(options) {\n var _ref2;\n native().hide((_ref2 = options === null || options === void 0 ? void 0 : options.fade) !== null && _ref2 !== void 0 ? _ref2 : false);\n },\n Cover,\n artworkWidth: (_ref = (_readLaunchScreenConfig = readLaunchScreenConfig()) === null || _readLaunchScreenConfig === void 0 ? void 0 : _readLaunchScreenConfig.width) !== null && _ref !== void 0 ? _ref : null\n});\nexport {\n LaunchScreen\n};\n//# sourceMappingURL=index.native.js.map\n"],"mappings":";;;;;AAGA,IAAI;AACJ,IAAI;AACJ,IAAI;AACJ,SAAS,SAAS;CAChB,WAAW,QAAQ,WAAW,KAAK,IAAI,SAAS,SAAS,aAAa,mBAAmB,iBAAiB;CAC1G,OAAO;AACT;AACA,IAAI,eAAe,OAAO,OAAO;CAC/B,kBAAkB;EAChB,OAAO,CAAC,CAAC,gBAAgB;CAC3B;CACA,KAAK,SAAS;EACZ,IAAI;EACJ,OAAO,CAAC,CAAC,MAAM,QAAQ,YAAY,QAAQ,YAAY,KAAK,IAAI,KAAK,IAAI,QAAQ,UAAU,QAAQ,UAAU,KAAK,IAAI,QAAQ,KAAK;CACrI;CACA;CACA,eAAe,QAAQ,0BAA0B,uBAAuB,OAAO,QAAQ,4BAA4B,KAAK,IAAI,KAAK,IAAI,wBAAwB,WAAW,QAAQ,SAAS,KAAK,IAAI,OAAO;AAC3M,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.native.js","names":[],"sources":["esm/platform/launchScreen/index.native.js"],"sourcesContent":["import { NitroModules } from \"react-native-nitro-modules\";\nimport { Cover } from \"./Cover.native\";\nimport { readLaunchScreenConfig } from \"./config\";\nvar _ref;\nvar _readLaunchScreenConfig;\nvar hybrid;\nvar appHolds = false;\nfunction native() {\n hybrid !== null && hybrid !== void 0 ? hybrid : hybrid = NitroModules.createHybridObject(\"OneLaunchScreen\");\n return hybrid;\n}\nvar LaunchScreen = Object.freeze({\n preventAutoHide() {\n appHolds = true;\n native().preventAutoHide();\n },\n hide(options) {\n var _ref2;\n native().hide((_ref2 = options === null || options === void 0 ? void 0 : options.fade) !== null && _ref2 !== void 0 ? _ref2 : false);\n },\n Cover,\n artworkWidth: (_ref = (_readLaunchScreenConfig = readLaunchScreenConfig()) === null || _readLaunchScreenConfig === void 0 ? void 0 : _readLaunchScreenConfig.width) !== null && _ref !== void 0 ? _ref : null\n});\nfunction holdLaunchScreenForRouter() {\n if (!NitroModules.hasHybridObject(\"OneLaunchScreen\")) return false;\n native().preventAutoHide();\n return true;\n}\nfunction releaseLaunchScreenForRouter() {\n if (!appHolds) native().hide(false);\n}\nexport {\n LaunchScreen,\n holdLaunchScreenForRouter,\n releaseLaunchScreenForRouter\n};\n//# sourceMappingURL=index.native.js.map\n"],"mappings":";;;;;AAGA,IAAI;AACJ,IAAI;AACJ,IAAI;AACJ,IAAI,WAAW;AACf,SAAS,SAAS;CAChB,WAAW,QAAQ,WAAW,KAAK,IAAI,SAAS,SAAS,aAAa,mBAAmB,iBAAiB;CAC1G,OAAO;AACT;AACA,IAAI,eAAe,OAAO,OAAO;CAC/B,kBAAkB;EAChB,WAAW;EACX,OAAO,CAAC,CAAC,gBAAgB;CAC3B;CACA,KAAK,SAAS;EACZ,IAAI;EACJ,OAAO,CAAC,CAAC,MAAM,QAAQ,YAAY,QAAQ,YAAY,KAAK,IAAI,KAAK,IAAI,QAAQ,UAAU,QAAQ,UAAU,KAAK,IAAI,QAAQ,KAAK;CACrI;CACA;CACA,eAAe,QAAQ,0BAA0B,uBAAuB,OAAO,QAAQ,4BAA4B,KAAK,IAAI,KAAK,IAAI,wBAAwB,WAAW,QAAQ,SAAS,KAAK,IAAI,OAAO;AAC3M,CAAC;AACD,SAAS,4BAA4B;CACnC,IAAI,CAAC,aAAa,gBAAgB,iBAAiB,GAAG,OAAO;CAC7D,OAAO,CAAC,CAAC,gBAAgB;CACzB,OAAO;AACT;AACA,SAAS,+BAA+B;CACtC,IAAI,CAAC,UAAU,OAAO,CAAC,CAAC,KAAK,KAAK;AACpC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LaunchScreenRelease.js","names":[],"sources":["esm/router/LaunchScreenRelease.js"],"sourcesContent":["function LaunchScreenRelease() {\n return null;\n}\nexport {\n LaunchScreenRelease\n};\n//# sourceMappingURL=LaunchScreenRelease.js.map\n"],"mappings":";AAAA,SAAS,sBAAsB;CAC7B,OAAO;AACT"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { useLayoutEffect } from "react";
|
|
2
|
+
import { Platform } from "react-native";
|
|
3
|
+
import { holdLaunchScreenForRouter, releaseLaunchScreenForRouter } from "../platform/launchScreen/index.native.js";
|
|
4
|
+
|
|
5
|
+
var holds = Platform.OS === "ios" && holdLaunchScreenForRouter();
|
|
6
|
+
function LaunchScreenRelease() {
|
|
7
|
+
useLayoutEffect(function() {
|
|
8
|
+
if (holds) releaseLaunchScreenForRouter();
|
|
9
|
+
}, []);
|
|
10
|
+
return null;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { LaunchScreenRelease };
|
|
14
|
+
//# sourceMappingURL=LaunchScreenRelease.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LaunchScreenRelease.native.js","names":[],"sources":["esm/router/LaunchScreenRelease.native.js"],"sourcesContent":["import { useLayoutEffect } from \"react\";\nimport { Platform } from \"react-native\";\nimport { holdLaunchScreenForRouter, releaseLaunchScreenForRouter } from \"../platform/launchScreen/index.native\";\nvar holds = Platform.OS === \"ios\" && holdLaunchScreenForRouter();\nfunction LaunchScreenRelease() {\n useLayoutEffect(function() {\n if (holds) releaseLaunchScreenForRouter();\n }, []);\n return null;\n}\nexport {\n LaunchScreenRelease\n};\n//# sourceMappingURL=LaunchScreenRelease.native.js.map\n"],"mappings":";;;;;AAGA,IAAI,QAAQ,SAAS,OAAO,SAAS,0BAA0B;AAC/D,SAAS,sBAAsB;CAC7B,gBAAgB,WAAW;EACzB,IAAI,OAAO,6BAA6B;CAC1C,GAAG,CAAC,CAAC;CACL,OAAO;AACT"}
|
|
@@ -135,19 +135,6 @@ void OneHostRuntime::initializeRuntime()
|
|
|
135
135
|
return module;
|
|
136
136
|
});
|
|
137
137
|
bindNativeLogger(runtime, logJsMessage);
|
|
138
|
-
// hermes has no console of its own, so route it through the native logger
|
|
139
|
-
// before the bundle's own empty console stubs can claim the names
|
|
140
|
-
runtime.evaluateJavaScript(
|
|
141
|
-
std::make_shared<jsi::StringBuffer>(
|
|
142
|
-
"globalThis.console = {};"
|
|
143
|
-
"['log', 'info', 'warn', 'error', 'debug', 'trace'].forEach(function (name, level) {"
|
|
144
|
-
" console[name] = function () {"
|
|
145
|
-
" nativeLoggingHook(Array.prototype.map.call(arguments, function (value) {"
|
|
146
|
-
" return typeof value === 'string' ? value : (value && value.stack) || String(value);"
|
|
147
|
-
" }).join(' '), level);"
|
|
148
|
-
" };"
|
|
149
|
-
"});"),
|
|
150
|
-
"one-host-console");
|
|
151
138
|
auto provider = hasComponentProvider;
|
|
152
139
|
bindHasComponentProvider(runtime, std::move(provider));
|
|
153
140
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "one",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.15.0",
|
|
4
4
|
"description": "One is a React framework for web, iOS, and Android apps.",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"sideEffects": [
|
|
@@ -282,15 +282,15 @@
|
|
|
282
282
|
"@react-navigation/routers": "8.0.0-alpha.21",
|
|
283
283
|
"@rozenite/middleware": "^2.5.0",
|
|
284
284
|
"@ungap/structured-clone": "^1.2.0",
|
|
285
|
-
"@vxrn/color-scheme": "2.
|
|
286
|
-
"@vxrn/compiler": "2.
|
|
287
|
-
"@vxrn/resolve": "2.
|
|
288
|
-
"@vxrn/tslib-lite": "2.
|
|
289
|
-
"@vxrn/use-isomorphic-layout-effect": "2.
|
|
290
|
-
"@vxrn/utils": "2.
|
|
285
|
+
"@vxrn/color-scheme": "2.15.0",
|
|
286
|
+
"@vxrn/compiler": "2.15.0",
|
|
287
|
+
"@vxrn/resolve": "2.15.0",
|
|
288
|
+
"@vxrn/tslib-lite": "2.15.0",
|
|
289
|
+
"@vxrn/use-isomorphic-layout-effect": "2.15.0",
|
|
290
|
+
"@vxrn/utils": "2.15.0",
|
|
291
291
|
"citty": "^0.1.6",
|
|
292
292
|
"core-js": "^3.38.1",
|
|
293
|
-
"create-vxrn": "2.
|
|
293
|
+
"create-vxrn": "2.15.0",
|
|
294
294
|
"escape-string-regexp": "^5.0.0",
|
|
295
295
|
"fast-deep-equal": "^3.1.3",
|
|
296
296
|
"fast-glob": "^3.3.3",
|
|
@@ -312,7 +312,7 @@
|
|
|
312
312
|
"tsconfig-paths": "^4",
|
|
313
313
|
"use-latest-callback": "^0.3.5",
|
|
314
314
|
"vite": "^8.2.2",
|
|
315
|
-
"vxrn": "2.
|
|
315
|
+
"vxrn": "2.15.0",
|
|
316
316
|
"web-streams-polyfill": "^4.3.0",
|
|
317
317
|
"ws": "^8.21.0",
|
|
318
318
|
"xxhashjs": "^0.2.2"
|
|
@@ -342,7 +342,7 @@
|
|
|
342
342
|
"@babel/types": "^7.28.5",
|
|
343
343
|
"babel-dead-code-elimination": "1.0.10",
|
|
344
344
|
"babel-plugin-module-resolver": "^5.0.2",
|
|
345
|
-
"@vxrn/vite-plugin-metro": "2.
|
|
345
|
+
"@vxrn/vite-plugin-metro": "2.15.0"
|
|
346
346
|
},
|
|
347
347
|
"peerDependenciesMeta": {
|
|
348
348
|
"@react-native/babel-preset": {
|
|
@@ -404,19 +404,19 @@
|
|
|
404
404
|
}
|
|
405
405
|
},
|
|
406
406
|
"devDependencies": {
|
|
407
|
-
"@tamagui/sheet": "3.2.
|
|
407
|
+
"@tamagui/sheet": "3.2.4",
|
|
408
408
|
"@callstack/liquid-glass": "^0.8.1",
|
|
409
409
|
"@react-native/babel-plugin-codegen": "0.88.0",
|
|
410
410
|
"@react-native/codegen": "^0.88.0",
|
|
411
411
|
"@react-navigation/core": "8.0.0-alpha.41",
|
|
412
412
|
"@react-navigation/drawer": "8.0.0-alpha.58",
|
|
413
413
|
"@react-navigation/native": "8.0.0-alpha.51",
|
|
414
|
-
"@tamagui/build": "3.2.
|
|
414
|
+
"@tamagui/build": "3.2.4",
|
|
415
415
|
"@types/node": "^24.10.0",
|
|
416
416
|
"@types/react-dom": "^19.3.0",
|
|
417
417
|
"@types/react-test-renderer": "^19.1.0",
|
|
418
418
|
"@types/xxhashjs": "^0.2.4",
|
|
419
|
-
"@vxrn/emitter": "2.
|
|
419
|
+
"@vxrn/emitter": "2.15.0",
|
|
420
420
|
"depcheck": "^1.4.7",
|
|
421
421
|
"esbuild": "^0.25.12",
|
|
422
422
|
"immer": "^10.1.1",
|
|
@@ -435,7 +435,7 @@
|
|
|
435
435
|
"typescript": "7.0.2",
|
|
436
436
|
"vitest": "^4.1.0",
|
|
437
437
|
"yoga-layout": "^3.2.1",
|
|
438
|
-
"@tamagui/web": "3.2.
|
|
438
|
+
"@tamagui/web": "3.2.4",
|
|
439
439
|
"@babel/core": "^7.28.5",
|
|
440
440
|
"@babel/generator": "7.29.7",
|
|
441
441
|
"@babel/parser": "^7.28.5",
|
|
@@ -444,7 +444,7 @@
|
|
|
444
444
|
"@babel/types": "^7.28.5",
|
|
445
445
|
"babel-dead-code-elimination": "1.0.10",
|
|
446
446
|
"babel-plugin-module-resolver": "^5.0.2",
|
|
447
|
-
"@vxrn/vite-plugin-metro": "2.
|
|
447
|
+
"@vxrn/vite-plugin-metro": "2.15.0"
|
|
448
448
|
},
|
|
449
449
|
"publishConfig": {
|
|
450
450
|
"access": "public"
|
|
@@ -612,7 +612,7 @@
|
|
|
612
612
|
}
|
|
613
613
|
}
|
|
614
614
|
},
|
|
615
|
-
"releaseSourceCommit": "
|
|
615
|
+
"releaseSourceCommit": "25aca02a5be98e8f28143e439d9e8f8e7ed5c0a8",
|
|
616
616
|
"repository": {
|
|
617
617
|
"type": "git",
|
|
618
618
|
"url": "git+https://github.com/onejs/one.git",
|
package/src/Root.tsx
CHANGED
|
@@ -21,6 +21,7 @@ import { FlagsContext } from './router/FlagsContext'
|
|
|
21
21
|
import { getResolvedLinking } from './router/linkingConfig'
|
|
22
22
|
import { handleNavigationContainerStateChange } from './router/router'
|
|
23
23
|
import { ServerLocationContext } from './router/serverLocationContext'
|
|
24
|
+
import { LaunchScreenRelease } from './router/LaunchScreenRelease'
|
|
24
25
|
import { useInitializeOneRouter } from './router/useInitializeOneRouter'
|
|
25
26
|
import { useViteRoutes } from './router/useViteRoutes'
|
|
26
27
|
import type { GlobbedRouteImports } from './types'
|
|
@@ -168,6 +169,7 @@ export function Root(props: RootProps) {
|
|
|
168
169
|
<RootErrorBoundary>
|
|
169
170
|
<Component />
|
|
170
171
|
</RootErrorBoundary>
|
|
172
|
+
<LaunchScreenRelease />
|
|
171
173
|
</>
|
|
172
174
|
</ServerLocationContext.Provider>
|
|
173
175
|
</UpstreamNavigationContainer>
|
package/src/cli/prebuild.ts
CHANGED
|
@@ -85,7 +85,7 @@ export async function run(args: { platform?: string; 'no-install'?: boolean }) {
|
|
|
85
85
|
// vxrn patches android after this returns. skip ios when xcrun is
|
|
86
86
|
// absent and the command was not limited to ios, so android still finishes.
|
|
87
87
|
if (args.platform !== 'ios' && !xcrunAvailable()) {
|
|
88
|
-
console.warn('[one]
|
|
88
|
+
console.warn('[one] the iOS SDK is not available (xcrun found no iphonesimulator SDK), so iOS SDK generation was skipped')
|
|
89
89
|
return
|
|
90
90
|
}
|
|
91
91
|
await writeIosSdk(root)
|
|
@@ -96,10 +96,10 @@ export async function run(args: { platform?: string; 'no-install'?: boolean }) {
|
|
|
96
96
|
|
|
97
97
|
function xcrunAvailable() {
|
|
98
98
|
try {
|
|
99
|
-
execFileSync('xcrun', ['--
|
|
99
|
+
execFileSync('xcrun', ['--sdk', 'iphonesimulator', '--show-sdk-path'], { stdio: 'ignore' })
|
|
100
100
|
return true
|
|
101
|
-
} catch
|
|
102
|
-
return
|
|
101
|
+
} catch {
|
|
102
|
+
return false
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
|
package/src/native/index.ts
CHANGED
|
@@ -11,6 +11,7 @@ import type {
|
|
|
11
11
|
export type { LaunchScreenApi, LaunchScreenCoverProps, LaunchScreenHideOptions }
|
|
12
12
|
|
|
13
13
|
let hybrid: OneLaunchScreen | undefined
|
|
14
|
+
let appHolds = false
|
|
14
15
|
|
|
15
16
|
function native(): OneLaunchScreen {
|
|
16
17
|
hybrid ??= NitroModules.createHybridObject<OneLaunchScreen>('OneLaunchScreen')
|
|
@@ -19,6 +20,7 @@ function native(): OneLaunchScreen {
|
|
|
19
20
|
|
|
20
21
|
export const LaunchScreen: LaunchScreenApi = Object.freeze({
|
|
21
22
|
preventAutoHide() {
|
|
23
|
+
appHolds = true
|
|
22
24
|
native().preventAutoHide()
|
|
23
25
|
},
|
|
24
26
|
|
|
@@ -29,3 +31,14 @@ export const LaunchScreen: LaunchScreenApi = Object.freeze({
|
|
|
29
31
|
Cover,
|
|
30
32
|
artworkWidth: readLaunchScreenConfig()?.width ?? null,
|
|
31
33
|
})
|
|
34
|
+
|
|
35
|
+
// an app built without one's native module has no launch screen to hold.
|
|
36
|
+
export function holdLaunchScreenForRouter(): boolean {
|
|
37
|
+
if (!NitroModules.hasHybridObject('OneLaunchScreen')) return false
|
|
38
|
+
native().preventAutoHide()
|
|
39
|
+
return true
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function releaseLaunchScreenForRouter() {
|
|
43
|
+
if (!appHolds) native().hide(false)
|
|
44
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { useLayoutEffect } from 'react'
|
|
2
|
+
import { Platform } from 'react-native'
|
|
3
|
+
import {
|
|
4
|
+
holdLaunchScreenForRouter,
|
|
5
|
+
releaseLaunchScreenForRouter,
|
|
6
|
+
} from '../platform/launchScreen/index.native'
|
|
7
|
+
|
|
8
|
+
// ios releases the launch screen on react native's first content, which is the
|
|
9
|
+
// router's provider shell: native resolves its initial url asynchronously, so
|
|
10
|
+
// the root layout, where an app calls preventAutoHide, evaluates only after
|
|
11
|
+
// that release and the app shows an empty window in between. the router holds
|
|
12
|
+
// it from before its first commit until its first route renders.
|
|
13
|
+
const holds = Platform.OS === 'ios' && holdLaunchScreenForRouter()
|
|
14
|
+
|
|
15
|
+
export function LaunchScreenRelease() {
|
|
16
|
+
useLayoutEffect(() => {
|
|
17
|
+
if (holds) releaseLaunchScreenForRouter()
|
|
18
|
+
}, [])
|
|
19
|
+
return null
|
|
20
|
+
}
|
package/types/Root.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Root.d.ts","sourceRoot":"","sources":["../src/Root.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAoB,wBAAwB,EAAE,MAAM,0BAA0B,CAAA;AAG1F,OAAO,EAEL,KAAK,iBAAiB,EACtB,KAAK,SAAS,EAMf,MAAM,OAAO,CAAA;AAMd,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"Root.d.ts","sourceRoot":"","sources":["../src/Root.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAoB,wBAAwB,EAAE,MAAM,0BAA0B,CAAA;AAG1F,OAAO,EAEL,KAAK,iBAAiB,EACtB,KAAK,SAAS,EAMf,MAAM,OAAO,CAAA;AAMd,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAQzD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAOlD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,cAAc,CAAA;AAcvC,KAAK,SAAS,GAAG,IAAI,CAAC,UAAU,EAAE,SAAS,CAAC,GAAG;IAC7C,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,mBAAmB,CAAA;IAC3B,UAAU,EAAE,MAAM,CAAA;IAClB,YAAY,CAAC,EAAE,GAAG,CAAC,YAAY,CAAA;IAC/B,KAAK,CAAC,EAAE,GAAG,CAAC,KAAK,CAAA;IACjB,OAAO,CAAC,EAAE,gBAAgB,CAAA;CAC3B,CAAA;AAED,KAAK,UAAU,GAAG;IAChB,OAAO,EAAE,GAAG,CAAC,YAAY,CAAA;IACzB,QAAQ,CAAC,EAAE,GAAG,CAAA;IACd,OAAO,CAAC,EAAE,iBAAiB,CAAC;QAAE,QAAQ,EAAE,SAAS,CAAA;KAAE,CAAC,CAAA;IACpD,wBAAwB,CAAC,EAAE,wBAAwB,GAAG;QACpD,KAAK,CAAC,EAAE;YACN,IAAI,EAAE,OAAO,CAAA;YACb,MAAM,EAAE;gBACN,OAAO,EAAE,MAAM,CAAA;gBACf,UAAU,EAAE,MAAM,CAAA;gBAClB,IAAI,EAAE,MAAM,CAAA;gBACZ,IAAI,EAAE,MAAM,CAAA;gBACZ,MAAM,EAAE,MAAM,CAAA;gBACd,YAAY,EAAE,MAAM,CAAA;aACrB,CAAA;SACF,CAAA;KACF,CAAA;CACF,CAAA;AAKD,wBAAgB,IAAI,CAAC,KAAK,EAAE,SAAS,sCAiLpC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { appIconPreviewResources, expoClientFromNativeApp, validateNativeApp, type NativeAppIcon, type NativeAppManifest, } from '@vxrn/utils/nativeAppManifest';
|
|
1
|
+
export { appIconPreviewResources, expoClientFromNativeApp, validateNativeApp, type NativeAppIcon, type NativeAppPatch, type NativeAppManifest, } from '@vxrn/utils/nativeAppManifest';
|
|
2
2
|
//# sourceMappingURL=appManifest.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appManifest.d.ts","sourceRoot":"","sources":["../../src/native/appManifest.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EACvB,iBAAiB,EACjB,KAAK,aAAa,EAClB,KAAK,iBAAiB,GACvB,MAAM,+BAA+B,CAAA"}
|
|
1
|
+
{"version":3,"file":"appManifest.d.ts","sourceRoot":"","sources":["../../src/native/appManifest.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EACvB,iBAAiB,EACjB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,iBAAiB,GACvB,MAAM,+BAA+B,CAAA"}
|
package/types/native/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { expoClientFromNativeApp, validateNativeApp, type NativeAppIcon, type NativeAppManifest, } from './appManifest';
|
|
1
|
+
export { expoClientFromNativeApp, validateNativeApp, type NativeAppIcon, type NativeAppManifest, type NativeAppPatch, } from './appManifest';
|
|
2
2
|
export { ONE_PLATFORM_ENV, ONE_PUBLIC_PREFIX, pickOnePublicEnv, type OnePlatformKey, } from './env';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/native/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,KAAK,aAAa,EAClB,KAAK,iBAAiB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/native/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,KAAK,cAAc,GACpB,MAAM,eAAe,CAAA;AACtB,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,KAAK,cAAc,GACpB,MAAM,OAAO,CAAA"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { LaunchScreen as LaunchScreenApi, LaunchScreenCoverProps, LaunchScreenHideOptions } from './types';
|
|
2
2
|
export type { LaunchScreenApi, LaunchScreenCoverProps, LaunchScreenHideOptions };
|
|
3
3
|
export declare const LaunchScreen: LaunchScreenApi;
|
|
4
|
+
export declare function holdLaunchScreenForRouter(): boolean;
|
|
5
|
+
export declare function releaseLaunchScreenForRouter(): void;
|
|
4
6
|
//# sourceMappingURL=index.native.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../src/platform/launchScreen/index.native.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,YAAY,IAAI,eAAe,EAC/B,sBAAsB,EACtB,uBAAuB,EACxB,MAAM,SAAS,CAAA;AAEhB,YAAY,EAAE,eAAe,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,CAAA;
|
|
1
|
+
{"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../src/platform/launchScreen/index.native.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,YAAY,IAAI,eAAe,EAC/B,sBAAsB,EACtB,uBAAuB,EACxB,MAAM,SAAS,CAAA;AAEhB,YAAY,EAAE,eAAe,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,CAAA;AAUhF,eAAO,MAAM,YAAY,EAAE,eAYzB,CAAA;AAGF,wBAAgB,yBAAyB,IAAI,OAAO,CAInD;AAED,wBAAgB,4BAA4B,SAE3C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LaunchScreenRelease.d.ts","sourceRoot":"","sources":["../../src/router/LaunchScreenRelease.tsx"],"names":[],"mappings":"AACA,wBAAgB,mBAAmB,SAElC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LaunchScreenRelease.native.d.ts","sourceRoot":"","sources":["../../src/router/LaunchScreenRelease.native.tsx"],"names":[],"mappings":"AAcA,wBAAgB,mBAAmB,SAKlC"}
|