Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions __typetests__/common/AnimatedComponentTest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ function AnimatedComponentPropsTest() {
<MyAnimatedView style={RNStyle} />
<Animated.ScrollView style={RNStyle} />
<MyAnimatedScrollView style={RNStyle} />
<Animated.FlatList
style={RNStyle}
// @ts-expect-error
CellRendererComponent={() => {
return <View />;
}}
data={[]}
renderItem={() => <View />}
/>
<Animated.FlatList
style={RNStyle}
data={[]}
Expand Down
4 changes: 4 additions & 0 deletions src/reanimated2/component/FlatList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ interface ReanimatedFlatListPropsWithLayout<T>
* Lets you skip entering and exiting animations of FlatList items when on FlatList mount or unmount.
*/
skipEnteringExitingAnimations?: boolean;
/**
* CellRendererComponent is not supported in Animated.FlatList
Comment thread
Latropos marked this conversation as resolved.
Outdated
*/
CellRendererComponent?: never;
}

export type FlatListPropsWithLayout<T> = ReanimatedFlatListPropsWithLayout<T>;
Expand Down