Skip to content

Commit 6e316ea

Browse files
committed
fix: updates usePrevious import
1 parent f6b76e0 commit 6e316ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import React, { useCallback, useEffect, useMemo, useRef } from 'react';
88
import { ScrollView, View, ViewStyle, StyleProp } from 'react-native';
99
import Dot from './component/Dot';
1010
import EmptyDot, { defaultEmptyDotSize } from './component/EmptyDot';
11-
import { usePrevious } from 'react-use';
11+
import usePrevious from 'react-use/lib/usePrevious';
1212

1313
export interface IDotContainerProps {
1414
curPage: number;

0 commit comments

Comments
 (0)