From ca77853b96ef57365037deb91b2e3029f89835be Mon Sep 17 00:00:00 2001 From: Mrcode Date: Thu, 28 Mar 2019 08:36:55 +0800 Subject: [PATCH] fix: EventType has not 'action (#34176) --- types/react-navigation/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-navigation/index.d.ts b/types/react-navigation/index.d.ts index 9b2aee84e2..0c56d71914 100644 --- a/types/react-navigation/index.d.ts +++ b/types/react-navigation/index.d.ts @@ -662,7 +662,7 @@ export interface NavigationScreenProp { getParam(param: T): P[T]; setParams: (newParams: Partial

) => boolean; addListener: ( - eventName: 'willBlur' | 'willFocus' | 'didFocus' | 'didBlur', + eventName: EventType, callback: NavigationEventCallback ) => NavigationEventSubscription; push: (