expo-router 5.1.9 → 5.1.11
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": "5.1.
|
|
3
|
+
"version": "5.1.11",
|
|
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",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"react-native-reanimated": "*",
|
|
83
83
|
"react-native-safe-area-context": "*",
|
|
84
84
|
"react-native-screens": "*",
|
|
85
|
-
"react-server-dom-webpack": "~19.0.
|
|
85
|
+
"react-server-dom-webpack": "~19.0.4 || ~19.1.5 || ~19.2.4"
|
|
86
86
|
},
|
|
87
87
|
"peerDependenciesMeta": {
|
|
88
88
|
"react-native-reanimated": {
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"@testing-library/react-native": "^13.1.0",
|
|
106
106
|
"@types/semver": "^7.7.0",
|
|
107
107
|
"immer": "^10.1.1",
|
|
108
|
-
"react-server-dom-webpack": "~19.0.
|
|
108
|
+
"react-server-dom-webpack": "~19.0.4",
|
|
109
109
|
"tsd": "^0.28.1"
|
|
110
110
|
},
|
|
111
111
|
"dependencies": {
|
|
@@ -124,5 +124,5 @@
|
|
|
124
124
|
"server-only": "^0.0.1",
|
|
125
125
|
"shallowequal": "^1.1.0"
|
|
126
126
|
},
|
|
127
|
-
"gitHead": "
|
|
127
|
+
"gitHead": "0ce4dfe84cd156ceab8cd00749bf3f86f0c8d12d"
|
|
128
128
|
}
|