diff --git a/types/react-native-navigation/index.d.ts b/types/react-native-navigation/index.d.ts index 3edf071e98..1fd2697b8e 100644 --- a/types/react-native-navigation/index.d.ts +++ b/types/react-native-navigation/index.d.ts @@ -85,13 +85,13 @@ export interface ModalScreen extends Screen { animationType?: 'slide-up' | 'none'; } -export interface ResetScreen extends Screen { - passProps?: object; +export interface ResetScreen
extends Screen { + passProps?: P; animated?: boolean; animationType?: 'fade' | 'slide-horizontal'; } -export interface PushedScreen extends ResetScreen { +export interface PushedScreen
extends ResetScreen
{ titleImage?: any; backButtonTitle?: string; backButtonHidden?: boolean; @@ -123,10 +123,10 @@ export interface NavigatorEvent { } export class Navigator { - push(params: PushedScreen): void; + push
(params: PushedScreen
): void; pop(params?: { animated?: boolean; animationType?: 'fade' | 'slide-horizontal'; }): void; popToRoot(params?: { animated?: boolean; animationType?: 'fade' | 'slide-horizontal'; }): void; - resetTo(params: PushedScreen): void; + resetTo
(params: PushedScreen
): void; showModal(params: ModalScreen): void; dismissModal(params?: { animationType?: 'none' | 'slide-down' }): void; dismissAllModals(params?: { animationType?: 'none' | 'slide-down' }): void;