@react-navigation/native-stack 7.0.0-rc.29 → 7.0.0-rc.30
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/lib/commonjs/views/NativeStackView.native.js +3 -12
- package/lib/commonjs/views/NativeStackView.native.js.map +1 -1
- package/lib/module/views/NativeStackView.native.js +4 -13
- package/lib/module/views/NativeStackView.native.js.map +1 -1
- package/lib/typescript/commonjs/src/types.d.ts +0 -7
- package/lib/typescript/commonjs/src/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/views/NativeStackView.native.d.ts.map +1 -1
- package/lib/typescript/commonjs/tsconfig.build.tsbuildinfo +1 -1
- package/lib/typescript/module/src/types.d.ts +0 -7
- package/lib/typescript/module/src/types.d.ts.map +1 -1
- package/lib/typescript/module/src/views/NativeStackView.native.d.ts.map +1 -1
- package/lib/typescript/module/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +4 -4
- package/src/types.tsx +0 -7
- package/src/views/NativeStackView.native.tsx +8 -14
- package/lib/commonjs/views/DebugContainer.js +0 -22
- package/lib/commonjs/views/DebugContainer.js.map +0 -1
- package/lib/commonjs/views/DebugContainer.native.js +0 -47
- package/lib/commonjs/views/DebugContainer.native.js.map +0 -1
- package/lib/commonjs/views/ScreenStackContent.js +0 -70
- package/lib/commonjs/views/ScreenStackContent.js.map +0 -1
- package/lib/module/views/DebugContainer.js +0 -16
- package/lib/module/views/DebugContainer.js.map +0 -1
- package/lib/module/views/DebugContainer.native.js +0 -38
- package/lib/module/views/DebugContainer.native.js.map +0 -1
- package/lib/module/views/ScreenStackContent.js +0 -63
- package/lib/module/views/ScreenStackContent.js.map +0 -1
- package/lib/typescript/commonjs/src/views/DebugContainer.d.ts +0 -10
- package/lib/typescript/commonjs/src/views/DebugContainer.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/views/DebugContainer.native.d.ts +0 -15
- package/lib/typescript/commonjs/src/views/DebugContainer.native.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/views/ScreenStackContent.d.ts +0 -9
- package/lib/typescript/commonjs/src/views/ScreenStackContent.d.ts.map +0 -1
- package/lib/typescript/module/src/views/DebugContainer.d.ts +0 -10
- package/lib/typescript/module/src/views/DebugContainer.d.ts.map +0 -1
- package/lib/typescript/module/src/views/DebugContainer.native.d.ts +0 -15
- package/lib/typescript/module/src/views/DebugContainer.native.d.ts.map +0 -1
- package/lib/typescript/module/src/views/ScreenStackContent.d.ts +0 -9
- package/lib/typescript/module/src/views/ScreenStackContent.d.ts.map +0 -1
- package/src/views/DebugContainer.native.tsx +0 -43
- package/src/views/DebugContainer.tsx +0 -14
- package/src/views/ScreenStackContent.tsx +0 -121
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.0.0-rc.
|
|
4
|
+
"version": "7.0.0-rc.30",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native-component",
|
|
7
7
|
"react-component",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"react": "18.2.0",
|
|
65
65
|
"react-native": "0.74.5",
|
|
66
66
|
"react-native-builder-bob": "^0.29.0",
|
|
67
|
-
"react-native-screens": "4.0.0-beta.
|
|
67
|
+
"react-native-screens": "4.0.0-beta.16",
|
|
68
68
|
"typescript": "^5.5.2"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"react": ">= 18.2.0",
|
|
73
73
|
"react-native": "*",
|
|
74
74
|
"react-native-safe-area-context": ">= 4.0.0",
|
|
75
|
-
"react-native-screens": ">= 4.0.0"
|
|
75
|
+
"react-native-screens": ">= 4.0.0 || >= 4.0.0-beta.16"
|
|
76
76
|
},
|
|
77
77
|
"react-native-builder-bob": {
|
|
78
78
|
"source": "src",
|
|
@@ -99,5 +99,5 @@
|
|
|
99
99
|
]
|
|
100
100
|
]
|
|
101
101
|
},
|
|
102
|
-
"gitHead": "
|
|
102
|
+
"gitHead": "dfb56c62f21728a7e130945fd4e7b74e9c130fff"
|
|
103
103
|
}
|
package/src/types.tsx
CHANGED
|
@@ -447,13 +447,6 @@ export type NativeStackNavigationOptions = {
|
|
|
447
447
|
* Style object for the scene content.
|
|
448
448
|
*/
|
|
449
449
|
contentStyle?: StyleProp<ViewStyle>;
|
|
450
|
-
/**
|
|
451
|
-
* Style object for the screen native component. This might help to workaround
|
|
452
|
-
* some issues when using `formSheet` presentation.
|
|
453
|
-
*
|
|
454
|
-
* Only `backgroundColor` is accepted.
|
|
455
|
-
*/
|
|
456
|
-
unstable_screenStyle?: ScreenProps['unstable_screenStyle'];
|
|
457
450
|
/**
|
|
458
451
|
* Whether the gesture to dismiss should use animation provided to `animation` prop. Defaults to `false`.
|
|
459
452
|
*
|
|
@@ -29,7 +29,11 @@ import {
|
|
|
29
29
|
useSafeAreaFrame,
|
|
30
30
|
useSafeAreaInsets,
|
|
31
31
|
} from 'react-native-safe-area-context';
|
|
32
|
-
import {
|
|
32
|
+
import {
|
|
33
|
+
type ScreenProps,
|
|
34
|
+
ScreenStack,
|
|
35
|
+
ScreenStackItem,
|
|
36
|
+
} from 'react-native-screens';
|
|
33
37
|
|
|
34
38
|
import type {
|
|
35
39
|
NativeStackDescriptor,
|
|
@@ -42,7 +46,6 @@ import { AnimatedHeaderHeightContext } from '../utils/useAnimatedHeaderHeight';
|
|
|
42
46
|
import { useDismissedRouteError } from '../utils/useDismissedRouteError';
|
|
43
47
|
import { useInvalidPreventRemoveError } from '../utils/useInvalidPreventRemoveError';
|
|
44
48
|
import { FooterComponent } from './FooterComponent';
|
|
45
|
-
import { ScreenStackContent } from './ScreenStackContent';
|
|
46
49
|
import { useHeaderConfigProps } from './useHeaderConfigProps';
|
|
47
50
|
|
|
48
51
|
const ANDROID_DEFAULT_HEADER_HEIGHT = 56;
|
|
@@ -91,7 +94,6 @@ const SceneView = ({
|
|
|
91
94
|
animationMatchesGesture,
|
|
92
95
|
presentation = isPresentationModal ? 'modal' : 'card',
|
|
93
96
|
fullScreenGestureEnabled,
|
|
94
|
-
unstable_screenStyle = null,
|
|
95
97
|
} = options;
|
|
96
98
|
|
|
97
99
|
const {
|
|
@@ -129,14 +131,6 @@ const SceneView = ({
|
|
|
129
131
|
contentStyle,
|
|
130
132
|
} = options;
|
|
131
133
|
|
|
132
|
-
// We want to allow only backgroundColor setting for now.
|
|
133
|
-
// This allows to workaround one issue with truncated
|
|
134
|
-
// content with formSheet presentation.
|
|
135
|
-
unstable_screenStyle =
|
|
136
|
-
unstable_screenStyle && presentation === 'formSheet'
|
|
137
|
-
? { backgroundColor: unstable_screenStyle.backgroundColor }
|
|
138
|
-
: null;
|
|
139
|
-
|
|
140
134
|
if (gestureDirection === 'vertical' && Platform.OS === 'ios') {
|
|
141
135
|
// for `vertical` direction to work, we need to set `fullScreenGestureEnabled` to `true`
|
|
142
136
|
// so the screen can be dismissed from any point on screen.
|
|
@@ -280,10 +274,10 @@ const SceneView = ({
|
|
|
280
274
|
});
|
|
281
275
|
|
|
282
276
|
return (
|
|
283
|
-
<
|
|
277
|
+
<ScreenStackItem
|
|
284
278
|
key={route.key}
|
|
285
279
|
activityState={isPreloaded ? 0 : 2}
|
|
286
|
-
style={
|
|
280
|
+
style={StyleSheet.absoluteFill}
|
|
287
281
|
accessibilityElementsHidden={!focused}
|
|
288
282
|
importantForAccessibility={focused ? 'auto' : 'no-hide-descendants'}
|
|
289
283
|
customAnimationOnSwipe={animationMatchesGesture}
|
|
@@ -451,7 +445,7 @@ const SceneView = ({
|
|
|
451
445
|
</AnimatedHeaderHeightContext.Provider>
|
|
452
446
|
</NavigationRouteContext.Provider>
|
|
453
447
|
</NavigationContext.Provider>
|
|
454
|
-
</
|
|
448
|
+
</ScreenStackItem>
|
|
455
449
|
);
|
|
456
450
|
};
|
|
457
451
|
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.DebugContainer = DebugContainer;
|
|
7
|
-
var React = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
-
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); }
|
|
11
|
-
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; }
|
|
12
|
-
function DebugContainer(props) {
|
|
13
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
14
|
-
const {
|
|
15
|
-
stackPresentation: _,
|
|
16
|
-
...rest
|
|
17
|
-
} = props;
|
|
18
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
19
|
-
...rest
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=DebugContainer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","DebugContainer","props","stackPresentation","_","rest","jsx","View"],"sourceRoot":"../../../src","sources":["views/DebugContainer.tsx"],"mappings":";;;;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pD;EACA,MAAM;IAAEC,iBAAiB,EAAEC,CAAC;IAAE,GAAGC;EAAK,CAAC,GAAGH,KAAK;EAC/C,oBAAO,IAAAtB,WAAA,CAAA0B,GAAA,EAAC3B,YAAA,CAAA4B,IAAI;IAAA,GAAKF;EAAI,CAAG,CAAC;AAC3B","ignoreList":[]}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.DebugContainer = void 0;
|
|
7
|
-
var React = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _AppContainer = _interopRequireDefault(require("react-native/Libraries/ReactNative/AppContainer"));
|
|
10
|
-
var _reactNativeScreens = require("react-native-screens");
|
|
11
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
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
|
-
// @ts-expect-error Getting private component
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* This view must *not* be flattened.
|
|
19
|
-
* See https://github.com/software-mansion/react-native-screens/pull/1825
|
|
20
|
-
* for detailed explanation.
|
|
21
|
-
*/
|
|
22
|
-
let DebugContainer = props => {
|
|
23
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeScreens.ScreenContentWrapper, {
|
|
24
|
-
...props
|
|
25
|
-
});
|
|
26
|
-
};
|
|
27
|
-
exports.DebugContainer = DebugContainer;
|
|
28
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
29
|
-
exports.DebugContainer = DebugContainer = props => {
|
|
30
|
-
const {
|
|
31
|
-
stackPresentation,
|
|
32
|
-
...rest
|
|
33
|
-
} = props;
|
|
34
|
-
if (_reactNative.Platform.OS === 'ios' && stackPresentation !== 'push' && stackPresentation !== 'formSheet') {
|
|
35
|
-
// This is necessary for LogBox
|
|
36
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_AppContainer.default, {
|
|
37
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeScreens.ScreenContentWrapper, {
|
|
38
|
-
...rest
|
|
39
|
-
})
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeScreens.ScreenContentWrapper, {
|
|
43
|
-
...rest
|
|
44
|
-
});
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
//# sourceMappingURL=DebugContainer.native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_AppContainer","_interopRequireDefault","_reactNativeScreens","_jsxRuntime","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","DebugContainer","props","jsx","ScreenContentWrapper","exports","process","env","NODE_ENV","stackPresentation","rest","Platform","OS","children"],"sourceRoot":"../../../src","sources":["views/DebugContainer.native.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAA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a,GAAA,CAAAnB,CAAA,EAAAS,CAAA,GAAAA,CAAA;AAL9B;;AAYA;AACA;AACA;AACA;AACA;AACO,IAAIW,cAAc,GAAIC,KAAqB,IAAK;EACrD,oBAAO,IAAAtB,WAAA,CAAAuB,GAAA,EAACxB,mBAAA,CAAAyB,oBAAoB;IAAA,GAAKF;EAAK,CAAG,CAAC;AAC5C,CAAC;AAACG,OAAA,CAAAJ,cAAA,GAAAA,cAAA;AAEF,IAAIK,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,YAAY,EAAE;EACzCH,OAAA,CAAAJ,cAAA,GAAAA,cAAc,GAAIC,KAAqB,IAAK;IAC1C,MAAM;MAAEO,iBAAiB;MAAE,GAAGC;IAAK,CAAC,GAAGR,KAAK;IAE5C,IACES,qBAAQ,CAACC,EAAE,KAAK,KAAK,IACrBH,iBAAiB,KAAK,MAAM,IAC5BA,iBAAiB,KAAK,WAAW,EACjC;MACA;MACA,oBACE,IAAA7B,WAAA,CAAAuB,GAAA,EAAC1B,aAAA,CAAAM,OAAY;QAAA8B,QAAA,eACX,IAAAjC,WAAA,CAAAuB,GAAA,EAACxB,mBAAA,CAAAyB,oBAAoB;UAAA,GAAKM;QAAI,CAAG;MAAC,CACtB,CAAC;IAEnB;IAEA,oBAAO,IAAA9B,WAAA,CAAAuB,GAAA,EAACxB,mBAAA,CAAAyB,oBAAoB;MAAA,GAAKM;IAAI,CAAG,CAAC;EAC3C,CAAC;AACH","ignoreList":[]}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.ScreenStackContent = ScreenStackContent;
|
|
7
|
-
var React = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _reactNativeScreens = require("react-native-screens");
|
|
10
|
-
var _warnOnce = _interopRequireDefault(require("warn-once"));
|
|
11
|
-
var _DebugContainer = require("./DebugContainer");
|
|
12
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
-
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); }
|
|
15
|
-
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; }
|
|
16
|
-
function ScreenStackContent({
|
|
17
|
-
children,
|
|
18
|
-
headerConfig,
|
|
19
|
-
activityState,
|
|
20
|
-
stackPresentation,
|
|
21
|
-
contentStyle,
|
|
22
|
-
...rest
|
|
23
|
-
}) {
|
|
24
|
-
const isHeaderInModal = _reactNative.Platform.OS === 'android' ? false : stackPresentation !== 'push' && headerConfig?.hidden === false;
|
|
25
|
-
const headerHiddenPreviousRef = React.useRef(headerConfig?.hidden);
|
|
26
|
-
React.useEffect(() => {
|
|
27
|
-
(0, _warnOnce.default)(_reactNative.Platform.OS !== 'android' && stackPresentation !== 'push' && headerHiddenPreviousRef.current !== headerConfig?.hidden, `Dynamically changing header's visibility in modals will result in remounting the screen and losing all local state.`);
|
|
28
|
-
headerHiddenPreviousRef.current = headerConfig?.hidden;
|
|
29
|
-
}, [headerConfig?.hidden, stackPresentation]);
|
|
30
|
-
const content = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
31
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_DebugContainer.DebugContainer, {
|
|
32
|
-
style: [stackPresentation === 'formSheet' ? _reactNative.Platform.OS === 'ios' ? styles.absolute : null : styles.container, contentStyle],
|
|
33
|
-
stackPresentation: stackPresentation ?? 'push',
|
|
34
|
-
children: children
|
|
35
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeScreens.ScreenStackHeaderConfig, {
|
|
36
|
-
...headerConfig
|
|
37
|
-
})]
|
|
38
|
-
});
|
|
39
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeScreens.Screen, {
|
|
40
|
-
enabled: true,
|
|
41
|
-
isNativeStack: true,
|
|
42
|
-
activityState: activityState,
|
|
43
|
-
stackPresentation: stackPresentation,
|
|
44
|
-
hasLargeHeader: headerConfig?.largeTitle ?? false,
|
|
45
|
-
...rest,
|
|
46
|
-
children: isHeaderInModal ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeScreens.ScreenStack, {
|
|
47
|
-
style: styles.container,
|
|
48
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeScreens.Screen, {
|
|
49
|
-
enabled: true,
|
|
50
|
-
isNativeStack: true,
|
|
51
|
-
activityState: activityState,
|
|
52
|
-
hasLargeHeader: headerConfig?.largeTitle ?? false,
|
|
53
|
-
style: _reactNative.StyleSheet.absoluteFill,
|
|
54
|
-
children: content
|
|
55
|
-
})
|
|
56
|
-
}) : content
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
const styles = _reactNative.StyleSheet.create({
|
|
60
|
-
container: {
|
|
61
|
-
flex: 1
|
|
62
|
-
},
|
|
63
|
-
absolute: {
|
|
64
|
-
position: 'absolute',
|
|
65
|
-
top: 0,
|
|
66
|
-
start: 0,
|
|
67
|
-
end: 0
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
//# sourceMappingURL=ScreenStackContent.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","_interopRequireWildcard","require","_reactNative","_reactNativeScreens","_warnOnce","_interopRequireDefault","_DebugContainer","_jsxRuntime","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","ScreenStackContent","children","headerConfig","activityState","stackPresentation","contentStyle","rest","isHeaderInModal","Platform","OS","hidden","headerHiddenPreviousRef","useRef","useEffect","warnOnce","current","content","jsxs","Fragment","jsx","DebugContainer","style","styles","absolute","container","ScreenStackHeaderConfig","Screen","enabled","isNativeStack","hasLargeHeader","largeTitle","ScreenStack","StyleSheet","absoluteFill","create","flex","position","top","start","end"],"sourceRoot":"../../../src","sources":["views/ScreenStackContent.tsx"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAMA,IAAAE,mBAAA,GAAAF,OAAA;AAOA,IAAAG,SAAA,GAAAC,sBAAA,CAAAJ,OAAA;AAEA,IAAAK,eAAA,GAAAL,OAAA;AAAkD,IAAAM,WAAA,GAAAN,OAAA;AAAA,SAAAI,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,yBAAAH,CAAA,6BAAAI,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAD,wBAAA,YAAAA,CAAAH,CAAA,WAAAA,CAAA,GAAAM,CAAA,GAAAD,CAAA,KAAAL,CAAA;AAAA,SAAAR,wBAAAQ,CAAA,EAAAK,CAAA,SAAAA,CAAA,IAAAL,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAE,OAAA,EAAAF,CAAA,QAAAM,CAAA,GAAAH,wBAAA,CAAAE,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAC,GAAA,CAA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,GAEdA;EACD,CACK,CAAC;AAEb;AAEA,MAAMM,MAAM,GAAGU,uBAAU,CAACE,MAAM,CAAC;EAC/BV,SAAS,EAAE;IACTW,IAAI,EAAE;EACR,CAAC;EACDZ,QAAQ,EAAE;IACRa,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE,CAAC;IACNC,KAAK,EAAE,CAAC;IACRC,GAAG,EAAE;EACP;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import { View } from 'react-native';
|
|
5
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
-
export function DebugContainer(props) {
|
|
7
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
8
|
-
const {
|
|
9
|
-
stackPresentation: _,
|
|
10
|
-
...rest
|
|
11
|
-
} = props;
|
|
12
|
-
return /*#__PURE__*/_jsx(View, {
|
|
13
|
-
...rest
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=DebugContainer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","jsx","_jsx","DebugContainer","props","stackPresentation","_","rest"],"sourceRoot":"../../../src","sources":["views/DebugContainer.tsx"],"mappings":";;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,IAAI,QAAwB,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAQpD,OAAO,SAASC,cAAcA,CAACC,KAAqB,EAAE;EACpD;EACA,MAAM;IAAEC,iBAAiB,EAAEC,CAAC;IAAE,GAAGC;EAAK,CAAC,GAAGH,KAAK;EAC/C,oBAAOF,IAAA,CAACF,IAAI;IAAA,GAAKO;EAAI,CAAG,CAAC;AAC3B","ignoreList":[]}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import { Platform } from 'react-native';
|
|
5
|
-
// @ts-expect-error Getting private component
|
|
6
|
-
import AppContainer from 'react-native/Libraries/ReactNative/AppContainer';
|
|
7
|
-
import { ScreenContentWrapper } from 'react-native-screens';
|
|
8
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
-
/**
|
|
10
|
-
* This view must *not* be flattened.
|
|
11
|
-
* See https://github.com/software-mansion/react-native-screens/pull/1825
|
|
12
|
-
* for detailed explanation.
|
|
13
|
-
*/
|
|
14
|
-
export let DebugContainer = props => {
|
|
15
|
-
return /*#__PURE__*/_jsx(ScreenContentWrapper, {
|
|
16
|
-
...props
|
|
17
|
-
});
|
|
18
|
-
};
|
|
19
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
20
|
-
DebugContainer = props => {
|
|
21
|
-
const {
|
|
22
|
-
stackPresentation,
|
|
23
|
-
...rest
|
|
24
|
-
} = props;
|
|
25
|
-
if (Platform.OS === 'ios' && stackPresentation !== 'push' && stackPresentation !== 'formSheet') {
|
|
26
|
-
// This is necessary for LogBox
|
|
27
|
-
return /*#__PURE__*/_jsx(AppContainer, {
|
|
28
|
-
children: /*#__PURE__*/_jsx(ScreenContentWrapper, {
|
|
29
|
-
...rest
|
|
30
|
-
})
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
return /*#__PURE__*/_jsx(ScreenContentWrapper, {
|
|
34
|
-
...rest
|
|
35
|
-
});
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
//# sourceMappingURL=DebugContainer.native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","Platform","AppContainer","ScreenContentWrapper","jsx","_jsx","DebugContainer","props","process","env","NODE_ENV","stackPresentation","rest","OS","children"],"sourceRoot":"../../../src","sources":["views/DebugContainer.native.tsx"],"mappings":";;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,QAAQ,QAAwB,cAAc;AACvD;AACA,OAAOC,YAAY,MAAM,iDAAiD;AAC1E,SACEC,oBAAoB,QAEf,sBAAsB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAO9B;AACA;AACA;AACA;AACA;AACA,OAAO,IAAIC,cAAc,GAAIC,KAAqB,IAAK;EACrD,oBAAOF,IAAA,CAACF,oBAAoB;IAAA,GAAKI;EAAK,CAAG,CAAC;AAC5C,CAAC;AAED,IAAIC,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,YAAY,EAAE;EACzCJ,cAAc,GAAIC,KAAqB,IAAK;IAC1C,MAAM;MAAEI,iBAAiB;MAAE,GAAGC;IAAK,CAAC,GAAGL,KAAK;IAE5C,IACEN,QAAQ,CAACY,EAAE,KAAK,KAAK,IACrBF,iBAAiB,KAAK,MAAM,IAC5BA,iBAAiB,KAAK,WAAW,EACjC;MACA;MACA,oBACEN,IAAA,CAACH,YAAY;QAAAY,QAAA,eACXT,IAAA,CAACF,oBAAoB;UAAA,GAAKS;QAAI,CAAG;MAAC,CACtB,CAAC;IAEnB;IAEA,oBAAOP,IAAA,CAACF,oBAAoB;MAAA,GAAKS;IAAI,CAAG,CAAC;EAC3C,CAAC;AACH","ignoreList":[]}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import { Platform, StyleSheet } from 'react-native';
|
|
5
|
-
import { Screen, ScreenStack, ScreenStackHeaderConfig } from 'react-native-screens';
|
|
6
|
-
import warnOnce from 'warn-once';
|
|
7
|
-
import { DebugContainer } from './DebugContainer';
|
|
8
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
-
export function ScreenStackContent({
|
|
10
|
-
children,
|
|
11
|
-
headerConfig,
|
|
12
|
-
activityState,
|
|
13
|
-
stackPresentation,
|
|
14
|
-
contentStyle,
|
|
15
|
-
...rest
|
|
16
|
-
}) {
|
|
17
|
-
const isHeaderInModal = Platform.OS === 'android' ? false : stackPresentation !== 'push' && headerConfig?.hidden === false;
|
|
18
|
-
const headerHiddenPreviousRef = React.useRef(headerConfig?.hidden);
|
|
19
|
-
React.useEffect(() => {
|
|
20
|
-
warnOnce(Platform.OS !== 'android' && stackPresentation !== 'push' && headerHiddenPreviousRef.current !== headerConfig?.hidden, `Dynamically changing header's visibility in modals will result in remounting the screen and losing all local state.`);
|
|
21
|
-
headerHiddenPreviousRef.current = headerConfig?.hidden;
|
|
22
|
-
}, [headerConfig?.hidden, stackPresentation]);
|
|
23
|
-
const content = /*#__PURE__*/_jsxs(_Fragment, {
|
|
24
|
-
children: [/*#__PURE__*/_jsx(DebugContainer, {
|
|
25
|
-
style: [stackPresentation === 'formSheet' ? Platform.OS === 'ios' ? styles.absolute : null : styles.container, contentStyle],
|
|
26
|
-
stackPresentation: stackPresentation ?? 'push',
|
|
27
|
-
children: children
|
|
28
|
-
}), /*#__PURE__*/_jsx(ScreenStackHeaderConfig, {
|
|
29
|
-
...headerConfig
|
|
30
|
-
})]
|
|
31
|
-
});
|
|
32
|
-
return /*#__PURE__*/_jsx(Screen, {
|
|
33
|
-
enabled: true,
|
|
34
|
-
isNativeStack: true,
|
|
35
|
-
activityState: activityState,
|
|
36
|
-
stackPresentation: stackPresentation,
|
|
37
|
-
hasLargeHeader: headerConfig?.largeTitle ?? false,
|
|
38
|
-
...rest,
|
|
39
|
-
children: isHeaderInModal ? /*#__PURE__*/_jsx(ScreenStack, {
|
|
40
|
-
style: styles.container,
|
|
41
|
-
children: /*#__PURE__*/_jsx(Screen, {
|
|
42
|
-
enabled: true,
|
|
43
|
-
isNativeStack: true,
|
|
44
|
-
activityState: activityState,
|
|
45
|
-
hasLargeHeader: headerConfig?.largeTitle ?? false,
|
|
46
|
-
style: StyleSheet.absoluteFill,
|
|
47
|
-
children: content
|
|
48
|
-
})
|
|
49
|
-
}) : content
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
const styles = StyleSheet.create({
|
|
53
|
-
container: {
|
|
54
|
-
flex: 1
|
|
55
|
-
},
|
|
56
|
-
absolute: {
|
|
57
|
-
position: 'absolute',
|
|
58
|
-
top: 0,
|
|
59
|
-
start: 0,
|
|
60
|
-
end: 0
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
//# sourceMappingURL=ScreenStackContent.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","Platform","StyleSheet","Screen","ScreenStack","ScreenStackHeaderConfig","warnOnce","DebugContainer","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","ScreenStackContent","children","headerConfig","activityState","stackPresentation","contentStyle","rest","isHeaderInModal","OS","hidden","headerHiddenPreviousRef","useRef","useEffect","current","content","style","styles","absolute","container","enabled","isNativeStack","hasLargeHeader","largeTitle","absoluteFill","create","flex","position","top","start","end"],"sourceRoot":"../../../src","sources":["views/ScreenStackContent.tsx"],"mappings":";;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SACEC,QAAQ,EAERC,UAAU,QAEL,cAAc;AACrB,SACEC,MAAM,EAENC,WAAW,EACXC,uBAAuB,QAElB,sBAAsB;AAC7B,OAAOC,QAAQ,MAAM,WAAW;AAEhC,SAASC,cAAc,QAAQ,kBAAkB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,QAAA,IAAAC,SAAA,EAAAC,IAAA,IAAAC,KAAA;AAUlD,OAAO,SAASC,kBAAkBA,CAAC;EACjCC,QAAQ;EACRC,YAAY;EACZC,aAAa;EACbC,iBAAiB;EACjBC,YAAY;EACZ,GAAGC;AACE,CAAC,EAAE;EACR,MAAMC,eAAe,GACnBpB,QAAQ,CAACqB,EAAE,KAAK,SAAS,GACrB,KAAK,GACLJ,iBAAiB,KAAK,MAAM,IAAIF,YAAY,EAAEO,MAAM,KAAK,KAAK;EAEpE,MAAMC,uBAAuB,GAAGxB,KAAK,CAACyB,MAAM,CAACT,YAAY,EAAEO,MAAM,CAAC;EAElEvB,KAAK,CAAC0B,SAAS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C,GAEdA;EACD,CACK,CAAC;AAEb;AAEA,MAAME,MAAM,GAAG5B,UAAU,CAACoC,MAAM,CAAC;EAC/BN,SAAS,EAAE;IACTO,IAAI,EAAE;EACR,CAAC;EACDR,QAAQ,EAAE;IACRS,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE,CAAC;IACNC,KAAK,EAAE,CAAC;IACRC,GAAG,EAAE;EACP;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { type ViewProps } from 'react-native';
|
|
3
|
-
import { type StackPresentationTypes } from 'react-native-screens';
|
|
4
|
-
type ContainerProps = ViewProps & {
|
|
5
|
-
stackPresentation: StackPresentationTypes;
|
|
6
|
-
children: React.ReactNode;
|
|
7
|
-
};
|
|
8
|
-
export declare function DebugContainer(props: ContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export {};
|
|
10
|
-
//# sourceMappingURL=DebugContainer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DebugContainer.d.ts","sourceRoot":"","sources":["../../../../../src/views/DebugContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAEnE,KAAK,cAAc,GAAG,SAAS,GAAG;IAChC,iBAAiB,EAAE,sBAAsB,CAAC;IAC1C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF,wBAAgB,cAAc,CAAC,KAAK,EAAE,cAAc,2CAInD"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { type ViewProps } from 'react-native';
|
|
3
|
-
import { type StackPresentationTypes } from 'react-native-screens';
|
|
4
|
-
type ContainerProps = ViewProps & {
|
|
5
|
-
stackPresentation: StackPresentationTypes;
|
|
6
|
-
children: React.ReactNode;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* This view must *not* be flattened.
|
|
10
|
-
* See https://github.com/software-mansion/react-native-screens/pull/1825
|
|
11
|
-
* for detailed explanation.
|
|
12
|
-
*/
|
|
13
|
-
export declare let DebugContainer: (props: ContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export {};
|
|
15
|
-
//# sourceMappingURL=DebugContainer.native.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DebugContainer.native.d.ts","sourceRoot":"","sources":["../../../../../src/views/DebugContainer.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAGxD,OAAO,EAEL,KAAK,sBAAsB,EAC5B,MAAM,sBAAsB,CAAC;AAE9B,KAAK,cAAc,GAAG,SAAS,GAAG;IAChC,iBAAiB,EAAE,sBAAsB,CAAC;IAC1C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF;;;;GAIG;AACH,eAAO,IAAI,cAAc,UAAW,cAAc,4CAEjD,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type StyleProp, type ViewStyle } from 'react-native';
|
|
2
|
-
import { type ScreenProps, type ScreenStackHeaderConfigProps } from 'react-native-screens';
|
|
3
|
-
type Props = Omit<ScreenProps, 'enabled' | 'isNativeStack' | 'hasLargeHeader'> & {
|
|
4
|
-
headerConfig?: ScreenStackHeaderConfigProps;
|
|
5
|
-
contentStyle?: StyleProp<ViewStyle>;
|
|
6
|
-
};
|
|
7
|
-
export declare function ScreenStackContent({ children, headerConfig, activityState, stackPresentation, contentStyle, ...rest }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=ScreenStackContent.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ScreenStackContent.d.ts","sourceRoot":"","sources":["../../../../../src/views/ScreenStackContent.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,SAAS,EAEd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AACtB,OAAO,EAEL,KAAK,WAAW,EAGhB,KAAK,4BAA4B,EAClC,MAAM,sBAAsB,CAAC;AAK9B,KAAK,KAAK,GAAG,IAAI,CACf,WAAW,EACX,SAAS,GAAG,eAAe,GAAG,gBAAgB,CAC/C,GAAG;IACF,YAAY,CAAC,EAAE,4BAA4B,CAAC;IAC5C,YAAY,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CACrC,CAAC;AAEF,wBAAgB,kBAAkB,CAAC,EACjC,QAAQ,EACR,YAAY,EACZ,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,GAAG,IAAI,EACR,EAAE,KAAK,2CA2EP"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { type ViewProps } from 'react-native';
|
|
3
|
-
import { type StackPresentationTypes } from 'react-native-screens';
|
|
4
|
-
type ContainerProps = ViewProps & {
|
|
5
|
-
stackPresentation: StackPresentationTypes;
|
|
6
|
-
children: React.ReactNode;
|
|
7
|
-
};
|
|
8
|
-
export declare function DebugContainer(props: ContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export {};
|
|
10
|
-
//# sourceMappingURL=DebugContainer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DebugContainer.d.ts","sourceRoot":"","sources":["../../../../../src/views/DebugContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAEnE,KAAK,cAAc,GAAG,SAAS,GAAG;IAChC,iBAAiB,EAAE,sBAAsB,CAAC;IAC1C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF,wBAAgB,cAAc,CAAC,KAAK,EAAE,cAAc,2CAInD"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { type ViewProps } from 'react-native';
|
|
3
|
-
import { type StackPresentationTypes } from 'react-native-screens';
|
|
4
|
-
type ContainerProps = ViewProps & {
|
|
5
|
-
stackPresentation: StackPresentationTypes;
|
|
6
|
-
children: React.ReactNode;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* This view must *not* be flattened.
|
|
10
|
-
* See https://github.com/software-mansion/react-native-screens/pull/1825
|
|
11
|
-
* for detailed explanation.
|
|
12
|
-
*/
|
|
13
|
-
export declare let DebugContainer: (props: ContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export {};
|
|
15
|
-
//# sourceMappingURL=DebugContainer.native.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DebugContainer.native.d.ts","sourceRoot":"","sources":["../../../../../src/views/DebugContainer.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAGxD,OAAO,EAEL,KAAK,sBAAsB,EAC5B,MAAM,sBAAsB,CAAC;AAE9B,KAAK,cAAc,GAAG,SAAS,GAAG;IAChC,iBAAiB,EAAE,sBAAsB,CAAC;IAC1C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF;;;;GAIG;AACH,eAAO,IAAI,cAAc,UAAW,cAAc,4CAEjD,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type StyleProp, type ViewStyle } from 'react-native';
|
|
2
|
-
import { type ScreenProps, type ScreenStackHeaderConfigProps } from 'react-native-screens';
|
|
3
|
-
type Props = Omit<ScreenProps, 'enabled' | 'isNativeStack' | 'hasLargeHeader'> & {
|
|
4
|
-
headerConfig?: ScreenStackHeaderConfigProps;
|
|
5
|
-
contentStyle?: StyleProp<ViewStyle>;
|
|
6
|
-
};
|
|
7
|
-
export declare function ScreenStackContent({ children, headerConfig, activityState, stackPresentation, contentStyle, ...rest }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=ScreenStackContent.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ScreenStackContent.d.ts","sourceRoot":"","sources":["../../../../../src/views/ScreenStackContent.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,SAAS,EAEd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AACtB,OAAO,EAEL,KAAK,WAAW,EAGhB,KAAK,4BAA4B,EAClC,MAAM,sBAAsB,CAAC;AAK9B,KAAK,KAAK,GAAG,IAAI,CACf,WAAW,EACX,SAAS,GAAG,eAAe,GAAG,gBAAgB,CAC/C,GAAG;IACF,YAAY,CAAC,EAAE,4BAA4B,CAAC;IAC5C,YAAY,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CACrC,CAAC;AAEF,wBAAgB,kBAAkB,CAAC,EACjC,QAAQ,EACR,YAAY,EACZ,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,GAAG,IAAI,EACR,EAAE,KAAK,2CA2EP"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Platform, type ViewProps } from 'react-native';
|
|
3
|
-
// @ts-expect-error Getting private component
|
|
4
|
-
import AppContainer from 'react-native/Libraries/ReactNative/AppContainer';
|
|
5
|
-
import {
|
|
6
|
-
ScreenContentWrapper,
|
|
7
|
-
type StackPresentationTypes,
|
|
8
|
-
} from 'react-native-screens';
|
|
9
|
-
|
|
10
|
-
type ContainerProps = ViewProps & {
|
|
11
|
-
stackPresentation: StackPresentationTypes;
|
|
12
|
-
children: React.ReactNode;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* This view must *not* be flattened.
|
|
17
|
-
* See https://github.com/software-mansion/react-native-screens/pull/1825
|
|
18
|
-
* for detailed explanation.
|
|
19
|
-
*/
|
|
20
|
-
export let DebugContainer = (props: ContainerProps) => {
|
|
21
|
-
return <ScreenContentWrapper {...props} />;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
25
|
-
DebugContainer = (props: ContainerProps) => {
|
|
26
|
-
const { stackPresentation, ...rest } = props;
|
|
27
|
-
|
|
28
|
-
if (
|
|
29
|
-
Platform.OS === 'ios' &&
|
|
30
|
-
stackPresentation !== 'push' &&
|
|
31
|
-
stackPresentation !== 'formSheet'
|
|
32
|
-
) {
|
|
33
|
-
// This is necessary for LogBox
|
|
34
|
-
return (
|
|
35
|
-
<AppContainer>
|
|
36
|
-
<ScreenContentWrapper {...rest} />
|
|
37
|
-
</AppContainer>
|
|
38
|
-
);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
return <ScreenContentWrapper {...rest} />;
|
|
42
|
-
};
|
|
43
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { View, type ViewProps } from 'react-native';
|
|
3
|
-
import { type StackPresentationTypes } from 'react-native-screens';
|
|
4
|
-
|
|
5
|
-
type ContainerProps = ViewProps & {
|
|
6
|
-
stackPresentation: StackPresentationTypes;
|
|
7
|
-
children: React.ReactNode;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export function DebugContainer(props: ContainerProps) {
|
|
11
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
12
|
-
const { stackPresentation: _, ...rest } = props;
|
|
13
|
-
return <View {...rest} />;
|
|
14
|
-
}
|