Skip to content

Commit 8050af2

Browse files
committed
fix: sectionlist ref typing
1 parent 1b9c170 commit 8050af2

File tree

1 file changed

+4
-1
lines changed
  • src/components/basic/SectionList

1 file changed

+4
-1
lines changed

src/components/basic/SectionList/types.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
import type { StyledProps } from '../../../theme/types';
22
import type { SectionListProps } from 'react-native';
33
import type { CustomProps, PlatformProps } from '../../types';
4+
import type { MutableRefObject } from 'react';
45
type DefaultSectionT = {
56
[key: string]: any;
67
};
78
// TODO: any need to fixed
89
export interface InterfaceSectionListProps<ItemT, sectionT = DefaultSectionT>
910
extends SectionListProps<ItemT, sectionT>,
1011
StyledProps,
11-
PlatformProps<ISectionListProps<ItemT, sectionT>> {}
12+
PlatformProps<ISectionListProps<ItemT, sectionT>> {
13+
ref?: MutableRefObject<any>;
14+
}
1215

1316
export type ISectionListProps<
1417
ItemT,

0 commit comments

Comments
 (0)