expo-router 6.0.22 → 6.0.23
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExpoHead.d.ts","sourceRoot":"","sources":["../../src/head/ExpoHead.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ExpoHead.d.ts","sourceRoot":"","sources":["../../src/head/ExpoHead.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAU,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAM7E,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,CAAC,GAAG;IAC5D,QAAQ,EAAE,OAAO,cAAc,CAAC;CAOjC,CAAC"}
|
package/build/head/ExpoHead.js
CHANGED
|
@@ -4,10 +4,18 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.Head = void 0;
|
|
7
|
+
const native_1 = require("@react-navigation/native");
|
|
7
8
|
const react_1 = __importDefault(require("react"));
|
|
8
9
|
const lib_1 = require("../../vendor/react-helmet-async/lib");
|
|
9
|
-
|
|
10
|
+
function FocusedHelmet({ children }) {
|
|
10
11
|
return <lib_1.Helmet>{children}</lib_1.Helmet>;
|
|
12
|
+
}
|
|
13
|
+
const Head = ({ children }) => {
|
|
14
|
+
const isFocused = (0, native_1.useIsFocused)();
|
|
15
|
+
if (!isFocused) {
|
|
16
|
+
return null;
|
|
17
|
+
}
|
|
18
|
+
return <FocusedHelmet>{children}</FocusedHelmet>;
|
|
11
19
|
};
|
|
12
20
|
exports.Head = Head;
|
|
13
21
|
exports.Head.Provider = lib_1.HelmetProvider;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExpoHead.js","sourceRoot":"","sources":["../../src/head/ExpoHead.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAE1B,6DAA6E;
|
|
1
|
+
{"version":3,"file":"ExpoHead.js","sourceRoot":"","sources":["../../src/head/ExpoHead.tsx"],"names":[],"mappings":";;;;;;AAAA,qDAAwD;AACxD,kDAA0B;AAE1B,6DAA6E;AAE7E,SAAS,aAAa,CAAC,EAAE,QAAQ,EAAkC;IACjE,OAAO,CAAC,YAAM,CAAC,CAAC,QAAQ,CAAC,EAAE,YAAM,CAAC,CAAC;AACrC,CAAC;AAEM,MAAM,IAAI,GAEb,CAAC,EAAE,QAAQ,EAAkC,EAAE,EAAE;IACnD,MAAM,SAAS,GAAG,IAAA,qBAAY,GAAE,CAAC;IACjC,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,EAAE,aAAa,CAAC,CAAC;AACnD,CAAC,CAAC;AARW,QAAA,IAAI,QAQf;AAEF,YAAI,CAAC,QAAQ,GAAG,oBAAc,CAAC","sourcesContent":["import { useIsFocused } from '@react-navigation/native';\nimport React from 'react';\n\nimport { Helmet, HelmetProvider } from '../../vendor/react-helmet-async/lib';\n\nfunction FocusedHelmet({ children }: { children?: React.ReactNode }) {\n return <Helmet>{children}</Helmet>;\n}\n\nexport const Head: React.FC<{ children?: React.ReactNode }> & {\n Provider: typeof HelmetProvider;\n} = ({ children }: { children?: React.ReactNode }) => {\n const isFocused = useIsFocused();\n if (!isFocused) {\n return null;\n }\n return <FocusedHelmet>{children}</FocusedHelmet>;\n};\n\nHead.Provider = HelmetProvider;\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-router",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.23",
|
|
4
4
|
"description": "Expo Router is a file-based router for React Native and web applications.",
|
|
5
5
|
"author": "650 Industries, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"react-native-safe-area-context": ">= 5.4.0",
|
|
92
92
|
"react-native-screens": "*",
|
|
93
93
|
"react-native-web": "*",
|
|
94
|
-
"react-server-dom-webpack": "~19.0.
|
|
94
|
+
"react-server-dom-webpack": "~19.0.4 || ~19.1.5 || ~19.2.4"
|
|
95
95
|
},
|
|
96
96
|
"peerDependenciesMeta": {
|
|
97
97
|
"@testing-library/react-native": {
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
"@types/react-dom": "^19.1.7",
|
|
125
125
|
"@types/semver": "^7.7.0",
|
|
126
126
|
"immer": "^10.1.1",
|
|
127
|
-
"react-server-dom-webpack": "~19.0.
|
|
127
|
+
"react-server-dom-webpack": "~19.0.4",
|
|
128
128
|
"tsd": "^0.28.1"
|
|
129
129
|
},
|
|
130
130
|
"dependencies": {
|
|
@@ -152,5 +152,5 @@
|
|
|
152
152
|
"use-latest-callback": "^0.2.1",
|
|
153
153
|
"vaul": "^1.1.2"
|
|
154
154
|
},
|
|
155
|
-
"gitHead": "
|
|
155
|
+
"gitHead": "cfd65241fb73317b63e6736e7890a784a69940fc"
|
|
156
156
|
}
|