diff --git a/scripts/stack.patch b/scripts/stack.patch index 512ad4794..c472b2981 100644 --- a/scripts/stack.patch +++ b/scripts/stack.patch @@ -176,7 +176,7 @@ diff -ruN node_modules/@react-navigation/stack/src/types.tsx src/vendor/types.ts export type StackNavigationEventMap = { /** -@@ -26,42 +41,29 @@ +@@ -26,42 +41,30 @@ transitionEnd: { closing: boolean }; }; @@ -218,16 +218,17 @@ diff -ruN node_modules/@react-navigation/stack/src/types.tsx src/vendor/types.ts - */ - popToTop(): void; +State = NavigationRoute, -+Params = NavigationParams -+> = NavigationScreenProp & { ++Params = NavigationParams, ++NextParams = NavigationParams ++> = NavigationScreenProp & { + push: ( + routeName: string, -+ params?: NavigationParams, ++ params?: NextParams, + action?: NavigationNavigateAction + ) => boolean; + replace: ( + routeName: string, -+ params?: NavigationParams, ++ params?: NextParams, + action?: NavigationNavigateAction + ) => boolean; + reset: (actions: NavigationAction[], index: number) => boolean; diff --git a/src/types.tsx b/src/types.tsx index 45a6b27d0..521f9ad03 100644 --- a/src/types.tsx +++ b/src/types.tsx @@ -8,10 +8,11 @@ import { StackNavigationProp, StackNavigationOptions } from './vendor/types'; export type NavigationStackScreenProps< Params = NavigationParams, - ScreenProps = unknown + ScreenProps = unknown, + NextParams = NavigationParams > = { theme: SupportedThemes; - navigation: StackNavigationProp; + navigation: StackNavigationProp; screenProps: ScreenProps; };