From 5c42c73a5acc0e482f1360957b60a36884600af8 Mon Sep 17 00:00:00 2001 From: Julian Kobrynski Date: Thu, 7 Dec 2023 16:15:29 +0100 Subject: [PATCH] rename type --- src/hooks/useTabNavigatorFocus/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hooks/useTabNavigatorFocus/index.ts b/src/hooks/useTabNavigatorFocus/index.ts index 647600577cf7..9138cbbdab48 100644 --- a/src/hooks/useTabNavigatorFocus/index.ts +++ b/src/hooks/useTabNavigatorFocus/index.ts @@ -8,7 +8,7 @@ type UseTabNavigatorFocusParams = { tabIndex: number; }; -type PositionAnimationListenerParams = { +type PositionAnimationListenerCallback = { value: number; }; @@ -56,7 +56,7 @@ function useTabNavigatorFocus({tabIndex}: UseTabNavigatorFocusParams): boolean { } const index = Number(tabIndex); - const listenerId = tabPositionAnimation.addListener(({value}: PositionAnimationListenerParams) => { + const listenerId = tabPositionAnimation.addListener(({value}: PositionAnimationListenerCallback) => { // Activate camera as soon the index is animating towards the `tabIndex` DomUtils.requestAnimationFrame(() => { setIsTabFocused(value > index - 1 && value < index + 1);