From e42fafcc492d01665c296bf551a6a264eb866fc5 Mon Sep 17 00:00:00 2001 From: Sebastian Silbermann Date: Sun, 30 Apr 2023 15:45:49 +0200 Subject: [PATCH] fix(BottomSheetScrollView): updated scroll responders props type (#1335)(by @eps1lon) * fix(BottomSheetScrollView): Scroll responder types use mixin * chore: removed unused import --------- Co-authored-by: gorhom --- src/components/bottomSheetScrollable/types.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/bottomSheetScrollable/types.d.ts b/src/components/bottomSheetScrollable/types.d.ts index 2822dbafc..f5763681c 100644 --- a/src/components/bottomSheetScrollable/types.d.ts +++ b/src/components/bottomSheetScrollable/types.d.ts @@ -6,7 +6,6 @@ import type { RefObject, } from 'react'; import type { - ScrollView, VirtualizedListProps, ScrollViewProps, FlatListProps, @@ -15,6 +14,7 @@ import type { View, ScrollViewComponent, NodeHandle, + ScrollResponderMixin, } from 'react-native'; import type Animated from 'react-native-reanimated'; import type { ScrollEventsHandlersHookType } from '../../types'; @@ -114,7 +114,7 @@ export interface BottomSheetFlatListMethods { /** * Provides a handle to the underlying scroll responder. */ - getScrollResponder: () => ReactNode | null | undefined; + getScrollResponder: () => ScrollResponderMixin | null | undefined; /** * Provides a reference to the underlying host component @@ -175,7 +175,7 @@ export interface BottomSheetScrollViewMethods { * implement this method so that they can be composed while providing access * to the underlying scroll responder's methods. */ - getScrollResponder(): ReactNode; + getScrollResponder(): ScrollResponderMixin; getScrollableNode(): any; @@ -231,7 +231,7 @@ export interface BottomSheetSectionListMethods { /** * Provides a handle to the underlying scroll responder. */ - getScrollResponder(): ScrollView | undefined; + getScrollResponder(): ScrollResponderMixin | undefined; /** * Provides a handle to the underlying scroll node.