Skip to content

Commit

Permalink
Panging.Custom minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
bdtren committed Jul 31, 2024
1 parent 063eb27 commit 2916a26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Pagination/Custom/PaginationItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ PropsWithChildren<{
children,
customReanimatedStyle,
} = props;
const customReanimatedStyleRef = useSharedValue({});
const customReanimatedStyleRef = useSharedValue<DefaultStyle>({});
const handleCustomAnimation = (progress: number) => {
customReanimatedStyleRef.value = customReanimatedStyle(progress, index, count) ?? {};
customReanimatedStyleRef.value = customReanimatedStyle?.(progress, index, count) ?? {};
}

useDerivedValue(() => {
Expand Down

0 comments on commit 2916a26

Please sign in to comment.