diff --git a/example/src/App.tsx b/example/src/App.tsx index fbff3ef..e89df2f 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -8,7 +8,7 @@ * https://github.com/facebook/react-native */ -import React, { useCallback, useRef } from 'react'; +import React, { useCallback } from 'react'; import { StyleSheet, View, @@ -19,12 +19,10 @@ import { ImageProps, } from 'react-native'; import Carousel, { - CarouselHandles, PaginationIndicator, withCarouselContext, useCarouselContext, } from '@r0b0t3d/react-native-carousel'; -import { useSharedValue } from 'react-native-reanimated'; type CarouselData = { id: string; diff --git a/src/components/CarouselContainer.tsx b/src/components/CarouselContainer.tsx index 4a16bcb..528082a 100644 --- a/src/components/CarouselContainer.tsx +++ b/src/components/CarouselContainer.tsx @@ -4,9 +4,8 @@ import React, { useCallback, useMemo, useRef, - useState, } from 'react'; -import Animated, { useSharedValue } from 'react-native-reanimated'; +import { useSharedValue } from 'react-native-reanimated'; import type { CarouselHandles } from 'src/types'; import { CarouselContext } from './useCarouselContext'; import { InternalCarouselContext } from './useInternalCarouselContext';