Skip to content

Commit

Permalink
fix(BottomSheetScrollView): updated scroll responders props type (#1335
Browse files Browse the repository at this point in the history
…)(by @eps1lon)

* fix(BottomSheetScrollView): Scroll responder types use mixin

* chore: removed unused import

---------

Co-authored-by: gorhom <gorhom.dev@gmail.com>
  • Loading branch information
eps1lon and gorhom committed Apr 30, 2023
1 parent d41eda2 commit 9c5af58
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/bottomSheetScrollable/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import type {
RefObject,
} from 'react';
import type {
ScrollView,
VirtualizedListProps,
ScrollViewProps,
FlatListProps,
Expand All @@ -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';
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 9c5af58

Please sign in to comment.