-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
Try to do this:
<FlatList
ref={(list) => flatListRef.current = list}
/>
);
but get:
Type '{ ref: (list: any) => any; data: Page[]; renderItem: ({ item: page }: ListRenderItemInfo<Page>) => Element; onStartReached: () => Promise<void>; onEndReached: () => Promise<...>; keyExtractor: (page: Page) => string; extraData: number; }' is not assignable to type 'IntrinsicAttributes & Omit<FlatListProps<Page>, "maintainVisibleContentPosition"> & { onEndReached: () => Promise<void>; ... 10 more ...; ListFooterComponent?: ComponentType<...>; }'.
Property 'ref' does not exist on type 'IntrinsicAttributes & Omit<FlatListProps<Page>, "maintainVisibleContentPosition"> & { onEndReached: () => Promise<void>; ... 10 more ...; ListFooterComponent?: ComponentType<...>; }'.ts(2322)
Versions
├─ @stream-io/[email protected]
└─ [email protected]
r-kojima, Sebastian-Jedrocha, preukschat, RaphBlanchet, sant3001 and 4 more
Metadata
Metadata
Assignees
Labels
No labels