Skip to content

Commit 1b9c170

Browse files
committed
fix: flatlist ref typing
1 parent 03b4686 commit 1b9c170

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/basic/FlatList/types.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import type { StyledProps } from '../../../theme/types';
22
import type { FlatListProps } from 'react-native';
33
import type { CustomProps, PlatformProps } from '../../types';
4+
import type { MutableRefObject } from 'react';
45

56
export interface InterfaceFlatListProps<ItemT>
67
extends FlatListProps<ItemT>,
@@ -10,6 +11,8 @@ export interface InterfaceFlatListProps<ItemT>
1011
* pass props to contentContainerStyle, and this also resolved NB tokens.
1112
*/
1213
_contentContainerStyle?: Partial<IFlatListProps<ItemT>>;
14+
15+
ref?: MutableRefObject<any>;
1316
}
1417

1518
export type IFlatListProps<ItemT> = InterfaceFlatListProps<ItemT> &

0 commit comments

Comments
 (0)