diff --git a/src/components/bottomSheetScrollable/BottomSheetSectionList.tsx b/src/components/bottomSheetScrollable/BottomSheetSectionList.tsx index 3916a78aa..5efb7c5cc 100644 --- a/src/components/bottomSheetScrollable/BottomSheetSectionList.tsx +++ b/src/components/bottomSheetScrollable/BottomSheetSectionList.tsx @@ -1,5 +1,6 @@ import { memo } from 'react'; import { + DefaultSectionT, SectionList as RNSectionList, SectionListProps as RNSectionListProps, } from 'react-native'; @@ -16,12 +17,12 @@ const AnimatedSectionList = const BottomSheetSectionListComponent = createBottomSheetScrollableComponent< BottomSheetSectionListMethods, - BottomSheetSectionListProps + BottomSheetSectionListProps >(AnimatedSectionList); const BottomSheetSectionList = memo(BottomSheetSectionListComponent); BottomSheetSectionList.displayName = 'BottomSheetSectionList'; -export default BottomSheetSectionList as ( - props: BottomSheetSectionListProps +export default BottomSheetSectionList as ( + props: BottomSheetSectionListProps ) => ReturnType; diff --git a/src/components/bottomSheetScrollable/types.d.ts b/src/components/bottomSheetScrollable/types.d.ts index 4afd70a16..68c7caf67 100644 --- a/src/components/bottomSheetScrollable/types.d.ts +++ b/src/components/bottomSheetScrollable/types.d.ts @@ -170,8 +170,8 @@ export interface BottomSheetScrollViewMethods { //#endregion //#region SectionList -type BottomSheetSectionListProps = Omit< - Animated.AnimateProps>, +type BottomSheetSectionListProps = Omit< + Animated.AnimateProps>, 'decelerationRate' | 'onScrollBeginDrag' | 'scrollEventThrottle' > & BottomSheetScrollableProps & {