@react-navigation/native-stack 7.0.1 → 7.0.3
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 -5
- package/lib/commonjs/views/NativeStackView.native.js.map +1 -1
- package/lib/module/views/NativeStackView.native.js +3 -5
- package/lib/module/views/NativeStackView.native.js.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/views/NativeStackView.native.d.ts.map +1 -1
- package/lib/typescript/module/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +5 -5
- package/src/views/NativeStackView.native.tsx +2 -5
|
@@ -45,7 +45,6 @@ import { getModalRouteKeys } from '../utils/getModalRoutesKeys';
|
|
|
45
45
|
import { AnimatedHeaderHeightContext } from '../utils/useAnimatedHeaderHeight';
|
|
46
46
|
import { useDismissedRouteError } from '../utils/useDismissedRouteError';
|
|
47
47
|
import { useInvalidPreventRemoveError } from '../utils/useInvalidPreventRemoveError';
|
|
48
|
-
import { FooterComponent } from './FooterComponent';
|
|
49
48
|
import { useHeaderConfigProps } from './useHeaderConfigProps';
|
|
50
49
|
|
|
51
50
|
const ANDROID_DEFAULT_HEADER_HEIGHT = 56;
|
|
@@ -126,7 +125,7 @@ const SceneView = ({
|
|
|
126
125
|
statusBarStyle,
|
|
127
126
|
statusBarTranslucent,
|
|
128
127
|
statusBarBackgroundColor,
|
|
129
|
-
unstable_sheetFooter
|
|
128
|
+
unstable_sheetFooter,
|
|
130
129
|
freezeOnBlur,
|
|
131
130
|
contentStyle,
|
|
132
131
|
} = options;
|
|
@@ -384,6 +383,7 @@ const SceneView = ({
|
|
|
384
383
|
contentStyle,
|
|
385
384
|
]}
|
|
386
385
|
headerConfig={headerConfig}
|
|
386
|
+
unstable_sheetFooter={unstable_sheetFooter}
|
|
387
387
|
// When ts-expect-error is added, it affects all the props below it
|
|
388
388
|
// So we keep any props that need it at the end
|
|
389
389
|
// Otherwise invalid props may not be caught by TypeScript
|
|
@@ -439,9 +439,6 @@ const SceneView = ({
|
|
|
439
439
|
{render()}
|
|
440
440
|
</HeaderBackContext.Provider>
|
|
441
441
|
</HeaderShownContext.Provider>
|
|
442
|
-
{presentation === 'formSheet' && unstable_sheetFooter && (
|
|
443
|
-
<FooterComponent>{unstable_sheetFooter()}</FooterComponent>
|
|
444
|
-
)}
|
|
445
442
|
</HeaderHeightContext.Provider>
|
|
446
443
|
</AnimatedHeaderHeightContext.Provider>
|
|
447
444
|
</NavigationRouteContext.Provider>
|