Skip to content

Commit e42fafc

Browse files
eps1longorhom
andcommitted
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 <gorhom.dev@gmail.com>
1 parent b440964 commit e42fafc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/bottomSheetScrollable/types.d.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import type {
66
RefObject,
77
} from 'react';
88
import type {
9-
ScrollView,
109
VirtualizedListProps,
1110
ScrollViewProps,
1211
FlatListProps,
@@ -15,6 +14,7 @@ import type {
1514
View,
1615
ScrollViewComponent,
1716
NodeHandle,
17+
ScrollResponderMixin,
1818
} from 'react-native';
1919
import type Animated from 'react-native-reanimated';
2020
import type { ScrollEventsHandlersHookType } from '../../types';
@@ -114,7 +114,7 @@ export interface BottomSheetFlatListMethods {
114114
/**
115115
* Provides a handle to the underlying scroll responder.
116116
*/
117-
getScrollResponder: () => ReactNode | null | undefined;
117+
getScrollResponder: () => ScrollResponderMixin | null | undefined;
118118

119119
/**
120120
* Provides a reference to the underlying host component
@@ -175,7 +175,7 @@ export interface BottomSheetScrollViewMethods {
175175
* implement this method so that they can be composed while providing access
176176
* to the underlying scroll responder's methods.
177177
*/
178-
getScrollResponder(): ReactNode;
178+
getScrollResponder(): ScrollResponderMixin;
179179

180180
getScrollableNode(): any;
181181

@@ -231,7 +231,7 @@ export interface BottomSheetSectionListMethods {
231231
/**
232232
* Provides a handle to the underlying scroll responder.
233233
*/
234-
getScrollResponder(): ScrollView | undefined;
234+
getScrollResponder(): ScrollResponderMixin | undefined;
235235

236236
/**
237237
* Provides a handle to the underlying scroll node.

0 commit comments

Comments
 (0)