@react-navigation/native-stack 7.3.9 → 7.3.10

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.
Files changed (30) hide show
  1. package/package.json +7 -5
  2. package/lib/commonjs/index.js +0 -27
  3. package/lib/commonjs/index.js.map +0 -1
  4. package/lib/commonjs/navigators/createNativeStackNavigator.js +0 -71
  5. package/lib/commonjs/navigators/createNativeStackNavigator.js.map +0 -1
  6. package/lib/commonjs/package.json +0 -1
  7. package/lib/commonjs/types.js +0 -6
  8. package/lib/commonjs/types.js.map +0 -1
  9. package/lib/commonjs/utils/debounce.js +0 -16
  10. package/lib/commonjs/utils/debounce.js.map +0 -1
  11. package/lib/commonjs/utils/getModalRoutesKeys.js +0 -17
  12. package/lib/commonjs/utils/getModalRoutesKeys.js.map +0 -1
  13. package/lib/commonjs/utils/useAnimatedHeaderHeight.js +0 -19
  14. package/lib/commonjs/utils/useAnimatedHeaderHeight.js.map +0 -1
  15. package/lib/commonjs/utils/useDismissedRouteError.js +0 -23
  16. package/lib/commonjs/utils/useDismissedRouteError.js.map +0 -1
  17. package/lib/commonjs/utils/useInvalidPreventRemoveError.js +0 -26
  18. package/lib/commonjs/utils/useInvalidPreventRemoveError.js.map +0 -1
  19. package/lib/commonjs/views/FontProcessor.js +0 -10
  20. package/lib/commonjs/views/FontProcessor.js.map +0 -1
  21. package/lib/commonjs/views/FontProcessor.native.js +0 -18
  22. package/lib/commonjs/views/FontProcessor.native.js.map +0 -1
  23. package/lib/commonjs/views/FooterComponent.js +0 -19
  24. package/lib/commonjs/views/FooterComponent.js.map +0 -1
  25. package/lib/commonjs/views/NativeStackView.js +0 -139
  26. package/lib/commonjs/views/NativeStackView.js.map +0 -1
  27. package/lib/commonjs/views/NativeStackView.native.js +0 -478
  28. package/lib/commonjs/views/NativeStackView.native.js.map +0 -1
  29. package/lib/commonjs/views/useHeaderConfigProps.js +0 -211
  30. package/lib/commonjs/views/useHeaderConfigProps.js.map +0 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@react-navigation/native-stack",
3
3
  "description": "Native stack navigator using react-native-screens",
4
- "version": "7.3.9",
4
+ "version": "7.3.10",
5
5
  "keywords": [
6
6
  "react-native-component",
7
7
  "react-component",
@@ -24,6 +24,7 @@
24
24
  "homepage": "https://github.com/software-mansion/react-native-screens#readme",
25
25
  "source": "./src/index.tsx",
26
26
  "main": "./lib/module/index.js",
27
+ "types": "./lib/typescript/src/index.d.ts",
27
28
  "exports": {
28
29
  ".": {
29
30
  "types": "./lib/typescript/src/index.d.ts",
@@ -45,12 +46,12 @@
45
46
  "clean": "del lib"
46
47
  },
47
48
  "dependencies": {
48
- "@react-navigation/elements": "^2.3.7",
49
+ "@react-navigation/elements": "^2.3.8",
49
50
  "warn-once": "^0.1.1"
50
51
  },
51
52
  "devDependencies": {
52
53
  "@jest/globals": "^29.7.0",
53
- "@react-navigation/native": "^7.1.5",
54
+ "@react-navigation/native": "^7.1.6",
54
55
  "@testing-library/react-native": "^12.8.1",
55
56
  "@types/react": "~18.3.12",
56
57
  "del-cli": "^5.1.0",
@@ -58,10 +59,11 @@
58
59
  "react-native": "0.76.2",
59
60
  "react-native-builder-bob": "^0.40.0",
60
61
  "react-native-screens": "^4.3.0",
62
+ "react-test-renderer": "18.2.0",
61
63
  "typescript": "^5.5.2"
62
64
  },
63
65
  "peerDependencies": {
64
- "@react-navigation/native": "^7.1.5",
66
+ "@react-navigation/native": "^7.1.6",
65
67
  "react": ">= 18.2.0",
66
68
  "react-native": "*",
67
69
  "react-native-safe-area-context": ">= 4.0.0",
@@ -85,5 +87,5 @@
85
87
  ]
86
88
  ]
87
89
  },
88
- "gitHead": "f81cdb021eae329286a4416b54a9902376f8b41d"
90
+ "gitHead": "174dd433d7c7bdd13958c8527760a688e64ab478"
89
91
  }
@@ -1,27 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "NativeStackView", {
7
- enumerable: true,
8
- get: function () {
9
- return _NativeStackView.NativeStackView;
10
- }
11
- });
12
- Object.defineProperty(exports, "createNativeStackNavigator", {
13
- enumerable: true,
14
- get: function () {
15
- return _createNativeStackNavigator.createNativeStackNavigator;
16
- }
17
- });
18
- Object.defineProperty(exports, "useAnimatedHeaderHeight", {
19
- enumerable: true,
20
- get: function () {
21
- return _useAnimatedHeaderHeight.useAnimatedHeaderHeight;
22
- }
23
- });
24
- var _createNativeStackNavigator = require("./navigators/createNativeStackNavigator.js");
25
- var _NativeStackView = require("./views/NativeStackView");
26
- var _useAnimatedHeaderHeight = require("./utils/useAnimatedHeaderHeight.js");
27
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_createNativeStackNavigator","require","_NativeStackView","_useAnimatedHeaderHeight"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAGA,IAAAA,2BAAA,GAAAC,OAAA;AAKA,IAAAC,gBAAA,GAAAD,OAAA;AAKA,IAAAE,wBAAA,GAAAF,OAAA","ignoreList":[]}
@@ -1,71 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.createNativeStackNavigator = createNativeStackNavigator;
7
- var _native = require("@react-navigation/native");
8
- var React = _interopRequireWildcard(require("react"));
9
- var _NativeStackView = require("../views/NativeStackView");
10
- var _jsxRuntime = require("react/jsx-runtime");
11
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
12
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
13
- function NativeStackNavigator({
14
- id,
15
- initialRouteName,
16
- children,
17
- layout,
18
- screenListeners,
19
- screenOptions,
20
- screenLayout,
21
- UNSTABLE_router,
22
- ...rest
23
- }) {
24
- const {
25
- state,
26
- describe,
27
- descriptors,
28
- navigation,
29
- NavigationContent
30
- } = (0, _native.useNavigationBuilder)(_native.StackRouter, {
31
- id,
32
- initialRouteName,
33
- children,
34
- layout,
35
- screenListeners,
36
- screenOptions,
37
- screenLayout,
38
- UNSTABLE_router
39
- });
40
- React.useEffect(() =>
41
- // @ts-expect-error: there may not be a tab navigator in parent
42
- navigation?.addListener?.('tabPress', e => {
43
- const isFocused = navigation.isFocused();
44
-
45
- // Run the operation in the next frame so we're sure all listeners have been run
46
- // This is necessary to know if preventDefault() has been called
47
- requestAnimationFrame(() => {
48
- if (state.index > 0 && isFocused && !e.defaultPrevented) {
49
- // When user taps on already focused tab and we're inside the tab,
50
- // reset the stack to replicate native behaviour
51
- navigation.dispatch({
52
- ..._native.StackActions.popToTop(),
53
- target: state.key
54
- });
55
- }
56
- });
57
- }), [navigation, state.index, state.key]);
58
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(NavigationContent, {
59
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_NativeStackView.NativeStackView, {
60
- ...rest,
61
- state: state,
62
- navigation: navigation,
63
- descriptors: descriptors,
64
- describe: describe
65
- })
66
- });
67
- }
68
- function createNativeStackNavigator(config) {
69
- return (0, _native.createNavigatorFactory)(NativeStackNavigator)(config);
70
- }
71
- //# sourceMappingURL=createNativeStackNavigator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_native","require","React","_interopRequireWildcard","_NativeStackView","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","NativeStackNavigator","id","initialRouteName","children","layout","screenListeners","screenOptions","screenLayout","UNSTABLE_router","rest","state","describe","descriptors","navigation","NavigationContent","useNavigationBuilder","StackRouter","useEffect","addListener","isFocused","requestAnimationFrame","index","defaultPrevented","dispatch","StackActions","popToTop","target","key","jsx","NativeStackView","createNativeStackNavigator","config","createNavigatorFactory"],"sourceRoot":"../../../src","sources":["navigators/createNativeStackNavigator.tsx"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAcA,IAAAC,KAAA,GAAAC,uBAAA,CAAAF,OAAA;AAQA,IAAAG,gBAAA,GAAAH,OAAA;AAA2D,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAK,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAJ,wBAAAI,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,CAAA,SAAAG,CAAA,GAAAP,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAb,CAAA,EAAAc,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AK,EAAEX,KAAK,CAACiB,GAAG,CACrC,CAAC;EAED,oBACE,IAAAhD,WAAA,CAAAiD,GAAA,EAACd,iBAAiB;IAAAX,QAAA,eAChB,IAAAxB,WAAA,CAAAiD,GAAA,EAAClD,gBAAA,CAAAmD,eAAe;MAAA,GACVpB,IAAI;MACRC,KAAK,EAAEA,KAAM;MACbG,UAAU,EAAEA,UAAW;MACvBD,WAAW,EAAEA,WAAY;MACzBD,QAAQ,EAAEA;IAAS,CACpB;EAAC,CACe,CAAC;AAExB;AAEO,SAASmB,0BAA0BA,CAmBxCC,MAAe,EAAmC;EAClD,OAAO,IAAAC,8BAAsB,EAAChC,oBAAoB,CAAC,CAAC+B,MAAM,CAAC;AAC7D","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"type":"commonjs"}
@@ -1,6 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sourceRoot":"../../src","sources":["types.tsx"],"mappings":"","ignoreList":[]}
@@ -1,16 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.debounce = debounce;
7
- function debounce(func, duration) {
8
- let timeout;
9
- return function (...args) {
10
- clearTimeout(timeout);
11
- timeout = setTimeout(() => {
12
- func.apply(this, args);
13
- }, duration);
14
- };
15
- }
16
- //# sourceMappingURL=debounce.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["debounce","func","duration","timeout","args","clearTimeout","setTimeout","apply"],"sourceRoot":"../../../src","sources":["utils/debounce.tsx"],"mappings":";;;;;;AAAO,SAASA,QAAQA,CACtBC,IAAO,EACPC,QAAgB,EACb;EACH,IAAIC,OAAsC;EAE1C,OAAO,UAAyB,GAAGC,IAAI,EAAE;IACvCC,YAAY,CAACF,OAAO,CAAC;IAErBA,OAAO,GAAGG,UAAU,CAAC,MAAM;MACzBL,IAAI,CAACM,KAAK,CAAC,IAAI,EAAEH,IAAI,CAAC;IACxB,CAAC,EAAEF,QAAQ,CAAC;EACd,CAAC;AACH","ignoreList":[]}
@@ -1,17 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.getModalRouteKeys = void 0;
7
- const getModalRouteKeys = (routes, descriptors) => routes.reduce((acc, route) => {
8
- const {
9
- presentation
10
- } = descriptors[route.key]?.options ?? {};
11
- if (acc.length && !presentation || presentation === 'modal' || presentation === 'transparentModal') {
12
- acc.push(route.key);
13
- }
14
- return acc;
15
- }, []);
16
- exports.getModalRouteKeys = getModalRouteKeys;
17
- //# sourceMappingURL=getModalRoutesKeys.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["getModalRouteKeys","routes","descriptors","reduce","acc","route","presentation","key","options","length","push","exports"],"sourceRoot":"../../../src","sources":["utils/getModalRoutesKeys.ts"],"mappings":";;;;;;AAIO,MAAMA,iBAAiB,GAAGA,CAC/BC,MAAuB,EACvBC,WAAqC,KAErCD,MAAM,CAACE,MAAM,CAAW,CAACC,GAAG,EAAEC,KAAK,KAAK;EACtC,MAAM;IAAEC;EAAa,CAAC,GAAGJ,WAAW,CAACG,KAAK,CAACE,GAAG,CAAC,EAAEC,OAAO,IAAI,CAAC,CAAC;EAE9D,IACGJ,GAAG,CAACK,MAAM,IAAI,CAACH,YAAY,IAC5BA,YAAY,KAAK,OAAO,IACxBA,YAAY,KAAK,kBAAkB,EACnC;IACAF,GAAG,CAACM,IAAI,CAACL,KAAK,CAACE,GAAG,CAAC;EACrB;EAEA,OAAOH,GAAG;AACZ,CAAC,EAAE,EAAE,CAAC;AAACO,OAAA,CAAAX,iBAAA,GAAAA,iBAAA","ignoreList":[]}
@@ -1,19 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.AnimatedHeaderHeightContext = void 0;
7
- exports.useAnimatedHeaderHeight = useAnimatedHeaderHeight;
8
- var React = _interopRequireWildcard(require("react"));
9
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
10
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
11
- const AnimatedHeaderHeightContext = exports.AnimatedHeaderHeightContext = /*#__PURE__*/React.createContext(undefined);
12
- function useAnimatedHeaderHeight() {
13
- const animatedValue = React.useContext(AnimatedHeaderHeightContext);
14
- if (animatedValue === undefined) {
15
- throw new Error("Couldn't find the header height. Are you inside a screen in a native stack navigator?");
16
- }
17
- return animatedValue;
18
- }
19
- //# sourceMappingURL=useAnimatedHeaderHeight.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","_interopRequireWildcard","require","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","AnimatedHeaderHeightContext","exports","createContext","undefined","useAnimatedHeaderHeight","animatedValue","useContext","Error"],"sourceRoot":"../../../src","sources":["utils/useAnimatedHeaderHeight.tsx"],"mappings":";;;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AAA+B,SAAAC,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CA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
@@ -1,23 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.useDismissedRouteError = useDismissedRouteError;
7
- var React = _interopRequireWildcard(require("react"));
8
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
9
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
10
- function useDismissedRouteError(state) {
11
- const [nextDismissedKey, setNextDismissedKey] = React.useState(null);
12
- const dismissedRouteName = nextDismissedKey ? state.routes.find(route => route.key === nextDismissedKey)?.name : null;
13
- React.useEffect(() => {
14
- if (dismissedRouteName) {
15
- const message = `The screen '${dismissedRouteName}' was removed natively but didn't get removed from JS state. ` + `This can happen if the action was prevented in a 'beforeRemove' listener, which is not fully supported in native-stack.\n\n` + `Consider using a 'usePreventRemove' hook with 'headerBackButtonMenuEnabled: false' to prevent users from natively going back multiple screens.`;
16
- console.error(message);
17
- }
18
- }, [dismissedRouteName]);
19
- return {
20
- setNextDismissedKey
21
- };
22
- }
23
- //# sourceMappingURL=useDismissedRouteError.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","_interopRequireWildcard","require","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","useDismissedRouteError","state","nextDismissedKey","setNextDismissedKey","useState","dismissedRouteName","routes","find","route","key","name","useE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C;EACA,MAAM,CAACC,gBAAgB,EAAEC,mBAAmB,CAAC,GAAG1B,KAAK,CAAC2B,QAAQ,CAC5D,IACF,CAAC;EAED,MAAMC,kBAAkB,GAAGH,gBAAgB,GACvCD,KAAK,CAACK,MAAM,CAACC,IAAI,CAAEC,KAAK,IAAKA,KAAK,CAACC,GAAG,KAAKP,gBAAgB,CAAC,EAAEQ,IAAI,GAClE,IAAI;EAERjC,KAAK,CAACkC,SAAS,CAAC,MAAM;IACpB,IAAIN,kBAAkB,EAAE;MACtB,MAAMO,OAAO,GACX,eAAeP,kBAAkB,+DAA+D,GAChG,6HAA6H,GAC7H,gJAAgJ;MAElJQ,OAAO,CAACC,KAAK,CAACF,OAAO,CAAC;IACxB;EACF,CAAC,EAAE,CAACP,kBAAkB,CAAC,CAAC;EAExB,OAAO;IAAEF;EAAoB,CAAC;AAChC","ignoreList":[]}
@@ -1,26 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.useInvalidPreventRemoveError = useInvalidPreventRemoveError;
7
- var _native = require("@react-navigation/native");
8
- var React = _interopRequireWildcard(require("react"));
9
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
10
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
11
- function useInvalidPreventRemoveError(descriptors) {
12
- const {
13
- preventedRoutes
14
- } = (0, _native.usePreventRemoveContext)();
15
- const preventedRouteKey = Object.keys(preventedRoutes)[0];
16
- const preventedDescriptor = descriptors[preventedRouteKey];
17
- const isHeaderBackButtonMenuEnabledOnPreventedScreen = preventedDescriptor?.options?.headerBackButtonMenuEnabled;
18
- const preventedRouteName = preventedDescriptor?.route?.name;
19
- React.useEffect(() => {
20
- if (preventedRouteKey != null && isHeaderBackButtonMenuEnabledOnPreventedScreen) {
21
- const message = `The screen ${preventedRouteName} uses 'usePreventRemove' hook alongside 'headerBackButtonMenuEnabled: true', which is not supported. \n\n` + `Consider removing 'headerBackButtonMenuEnabled: true' from ${preventedRouteName} screen to get rid of this error.`;
22
- console.error(message);
23
- }
24
- }, [preventedRouteKey, isHeaderBackButtonMenuEnabledOnPreventedScreen, preventedRouteName]);
25
- }
26
- //# sourceMappingURL=useInvalidPreventRemoveError.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_native","require","React","_interopRequireWildcard","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","useInvalidPreventRemoveError","descriptors","preventedRoutes","usePreventRemoveContext","preventedRouteKey","keys","preventedDescriptor","isHeaderBackButtonMenuEnabledOnPreventedScreen","options","headerBackButtonMenuEnabled","preventedRouteName","route","name","useEffect","message","console","error"],"sourceRoot":"../../../src","sources":["utils/useInvalidPreventRemoveError.tsx"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAC,uBAAA,CAAAF,OAAA;AAA+B,SAAAG,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAF,wBAAAE,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI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,IACET,iBAAiB,IAAI,IAAI,IACzBG,8CAA8C,EAC9C;MACA,MAAMO,OAAO,GACX,cAAcJ,kBAAkB,2GAA2G,GAC3I,8DAA8DA,kBAAkB,mCAAmC;MACrHK,OAAO,CAACC,KAAK,CAACF,OAAO,CAAC;IACxB;EACF,CAAC,EAAE,CACDV,iBAAiB,EACjBG,8CAA8C,EAC9CG,kBAAkB,CACnB,CAAC;AACJ","ignoreList":[]}
@@ -1,10 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.processFonts = processFonts;
7
- function processFonts(_) {
8
- throw new Error('Not supported on Web');
9
- }
10
- //# sourceMappingURL=FontProcessor.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["processFonts","_","Error"],"sourceRoot":"../../../src","sources":["views/FontProcessor.tsx"],"mappings":";;;;;;AAAO,SAASA,YAAYA,CAC1BC,CAAyB,EACD;EACxB,MAAM,IAAIC,KAAK,CAAC,sBAAsB,CAAC;AACzC","ignoreList":[]}
@@ -1,18 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.processFonts = processFonts;
7
- var _ReactNativeStyleAttributes = _interopRequireDefault(require("react-native/Libraries/Components/View/ReactNativeStyleAttributes"));
8
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
- // @ts-expect-error importing private module
10
-
11
- function processFonts(fontFamilies) {
12
- const fontFamilyProcessor = _ReactNativeStyleAttributes.default.fontFamily?.process;
13
- if (typeof fontFamilyProcessor === 'function') {
14
- return fontFamilies.map(fontFamilyProcessor);
15
- }
16
- return fontFamilies;
17
- }
18
- //# sourceMappingURL=FontProcessor.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_ReactNativeStyleAttributes","_interopRequireDefault","require","e","__esModule","default","processFonts","fontFamilies","fontFamilyProcessor","ReactNativeStyleAttributes","fontFamily","process","map"],"sourceRoot":"../../../src","sources":["views/FontProcessor.native.tsx"],"mappings":";;;;;;AACA,IAAAA,2BAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA2G,SAAAD,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAD3G;;AAGO,SAASG,YAAYA,CAC1BC,YAAoC,EACZ;EACxB,MAAMC,mBAAmB,GAAGC,mCAA0B,CAACC,UAAU,EAAEC,OAAO;EAC1E,IAAI,OAAOH,mBAAmB,KAAK,UAAU,EAAE;IAC7C,OAAOD,YAAY,CAACK,GAAG,CAACJ,mBAAmB,CAAC;EAC9C;EACA,OAAOD,YAAY;AACrB","ignoreList":[]}
@@ -1,19 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.FooterComponent = FooterComponent;
7
- var _react = _interopRequireDefault(require("react"));
8
- var _reactNativeScreens = require("react-native-screens");
9
- var _jsxRuntime = require("react/jsx-runtime");
10
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
- function FooterComponent({
12
- children
13
- }) {
14
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeScreens.ScreenFooter, {
15
- collapsable: false,
16
- children: children
17
- });
18
- }
19
- //# sourceMappingURL=FooterComponent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactNativeScreens","_jsxRuntime","e","__esModule","default","FooterComponent","children","jsx","ScreenFooter","collapsable"],"sourceRoot":"../../../src","sources":["views/FooterComponent.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,mBAAA,GAAAD,OAAA;AAAoD,IAAAE,WAAA,GAAAF,OAAA;AAAA,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAM7C,SAASG,eAAeA,CAAC;EAAEC;AAAsB,CAAC,EAAE;EACzD,oBAAO,IAAAL,WAAA,CAAAM,GAAA,EAACP,mBAAA,CAAAQ,YAAY;IAACC,WAAW,EAAE,KAAM;IAAAH,QAAA,EAAEA;EAAQ,CAAe,CAAC;AACpE","ignoreList":[]}
@@ -1,139 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.NativeStackView = NativeStackView;
7
- var _elements = require("@react-navigation/elements");
8
- var _native = require("@react-navigation/native");
9
- var React = _interopRequireWildcard(require("react"));
10
- var _reactNative = require("react-native");
11
- var _useAnimatedHeaderHeight = require("../utils/useAnimatedHeaderHeight.js");
12
- var _jsxRuntime = require("react/jsx-runtime");
13
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
14
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
15
- const TRANSPARENT_PRESENTATIONS = ['transparentModal', 'containedTransparentModal'];
16
- function NativeStackView({
17
- state,
18
- descriptors,
19
- describe
20
- }) {
21
- const parentHeaderBack = React.useContext(_elements.HeaderBackContext);
22
- const {
23
- buildHref
24
- } = (0, _native.useLinkBuilder)();
25
- const preloadedDescriptors = state.preloadedRoutes.reduce((acc, route) => {
26
- acc[route.key] = acc[route.key] || describe(route, true);
27
- return acc;
28
- }, {});
29
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_elements.SafeAreaProviderCompat, {
30
- children: state.routes.concat(state.preloadedRoutes).map((route, i) => {
31
- const isFocused = state.index === i;
32
- const previousKey = state.routes[i - 1]?.key;
33
- const nextKey = state.routes[i + 1]?.key;
34
- const previousDescriptor = previousKey ? descriptors[previousKey] : undefined;
35
- const nextDescriptor = nextKey ? descriptors[nextKey] : undefined;
36
- const {
37
- options,
38
- navigation,
39
- render
40
- } = descriptors[route.key] ?? preloadedDescriptors[route.key];
41
- const headerBack = previousDescriptor ? {
42
- title: (0, _elements.getHeaderTitle)(previousDescriptor.options, previousDescriptor.route.name),
43
- href: buildHref(previousDescriptor.route.name, previousDescriptor.route.params)
44
- } : parentHeaderBack;
45
- const canGoBack = headerBack != null;
46
- const {
47
- header,
48
- headerShown,
49
- headerBackImageSource,
50
- headerLeft,
51
- headerTransparent,
52
- headerBackTitle,
53
- presentation,
54
- contentStyle,
55
- ...rest
56
- } = options;
57
- const nextPresentation = nextDescriptor?.options.presentation;
58
- const isPreloaded = preloadedDescriptors[route.key] !== undefined && descriptors[route.key] === undefined;
59
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_elements.Screen, {
60
- focused: isFocused,
61
- route: route,
62
- navigation: navigation,
63
- headerShown: headerShown,
64
- headerTransparent: headerTransparent,
65
- header: header !== undefined ? header({
66
- back: headerBack,
67
- options,
68
- route,
69
- navigation
70
- }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_elements.Header, {
71
- ...rest,
72
- back: headerBack,
73
- title: (0, _elements.getHeaderTitle)(options, route.name),
74
- headerLeft: typeof headerLeft === 'function' ? ({
75
- label,
76
- ...rest
77
- }) => headerLeft({
78
- ...rest,
79
- label: headerBackTitle ?? label
80
- }) : headerLeft === undefined && canGoBack ? ({
81
- tintColor,
82
- label,
83
- ...rest
84
- }) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_elements.HeaderBackButton, {
85
- ...rest,
86
- label: headerBackTitle ?? label,
87
- tintColor: tintColor,
88
- backImage: headerBackImageSource !== undefined ? () => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Image, {
89
- source: headerBackImageSource,
90
- resizeMode: "contain",
91
- tintColor: tintColor,
92
- style: styles.backImage
93
- }) : undefined,
94
- onPress: navigation.goBack
95
- }) : headerLeft,
96
- headerTransparent: headerTransparent
97
- }),
98
- style: [_reactNative.StyleSheet.absoluteFill, {
99
- display: (isFocused || nextPresentation != null && TRANSPARENT_PRESENTATIONS.includes(nextPresentation)) && !isPreloaded ? 'flex' : 'none'
100
- }, presentation != null && TRANSPARENT_PRESENTATIONS.includes(presentation) ? {
101
- backgroundColor: 'transparent'
102
- } : null],
103
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_elements.HeaderBackContext.Provider, {
104
- value: headerBack,
105
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(AnimatedHeaderHeightProvider, {
106
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
107
- style: [styles.contentContainer, contentStyle],
108
- children: render()
109
- })
110
- })
111
- })
112
- }, route.key);
113
- })
114
- });
115
- }
116
- const AnimatedHeaderHeightProvider = ({
117
- children
118
- }) => {
119
- const headerHeight = (0, _elements.useHeaderHeight)();
120
- const [animatedHeaderHeight] = React.useState(() => new _reactNative.Animated.Value(headerHeight));
121
- React.useEffect(() => {
122
- animatedHeaderHeight.setValue(headerHeight);
123
- }, [animatedHeaderHeight, headerHeight]);
124
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_useAnimatedHeaderHeight.AnimatedHeaderHeightContext.Provider, {
125
- value: animatedHeaderHeight,
126
- children: children
127
- });
128
- };
129
- const styles = _reactNative.StyleSheet.create({
130
- contentContainer: {
131
- flex: 1
132
- },
133
- backImage: {
134
- height: 24,
135
- width: 24,
136
- margin: 3
137
- }
138
- });
139
- //# sourceMappingURL=NativeStackView.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_elements","require","_native","React","_interopRequireWildcard","_reactNative","_useAnimatedHeaderHeight","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","TRANSPARENT_PRESENTATIONS","NativeStackView","state","descriptors","describe","parentHeaderBack","useContext","HeaderBackContext","buildHref","useLinkBuilder","preloadedDescriptors","preloadedRoutes","reduce","acc","route","key","jsx","SafeAreaProviderCompat","children","routes","concat","map","isFocused","index","previousKey","nextKey","previousDescriptor","undefined","nextDescriptor","options","navigation","render","headerBack","title","getHeaderTitle","name","href","params","canGoBack","header","headerShown","headerBackImageSource","headerLeft","headerTransparent","headerBackTitle","presentation","contentStyle","rest","nextPresentation","isPreloaded","Screen","focused","back","Header","label","tintColor","HeaderBackButton","backImage","Image","source","resizeMode","style","styles","onPress","goBack","StyleSheet","absoluteFill","display","includes","backgroundColor","Provider","value","AnimatedHeaderHeightProvider","View","contentContainer","headerHeight","useHeaderHeight","animatedHeaderHeight","useState","Animated","Value","useEffect","setValue","AnimatedHeaderHeightContext","create","flex","height","width","margin"],"sourceRoot":"../../../src","sources":["views/NativeStackView.tsx"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AASA,IAAAC,OAAA,GAAAD,OAAA;AAMA,IAAAE,KAAA,GAAAC,uBAAA,CAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AAOA,IAAAK,wBAAA,GAAAL,OAAA;AAA+E,IAAAM,WAAA,GAAAN,OAAA;AAAA,SAAAO,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAL,wBAAAK,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CA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