diff --git a/types/react-navigation/index.d.ts b/types/react-navigation/index.d.ts index 0c67c333a0..75bc217615 100644 --- a/types/react-navigation/index.d.ts +++ b/types/react-navigation/index.d.ts @@ -17,6 +17,7 @@ // Ciaran Liedeman // Edward Sammut Alessi // Jérémy Magrin +// Luca Campana // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 @@ -578,7 +579,7 @@ export interface NavigationScreenProp { getParam: (param: T, fallback?: P[T]) => P[T]; setParams: (newParams: Partial

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