Skip to content

Commit

Permalink
rename type
Browse files Browse the repository at this point in the history
  • Loading branch information
JKobrynski committed Dec 7, 2023
1 parent ed9a26b commit 5c42c73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hooks/useTabNavigatorFocus/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type UseTabNavigatorFocusParams = {
tabIndex: number;
};

type PositionAnimationListenerParams = {
type PositionAnimationListenerCallback = {
value: number;
};

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 5c42c73

Please sign in to comment.