Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove CellRendererComponent from Animated.FlatList props #5951

Merged
merged 3 commits into from May 14, 2024

Conversation

Latropos
Copy link
Contributor

@Latropos Latropos commented Apr 29, 2024

Summary

Closes #5931

In our implementation of Animated.FlatList we overwrite CellRendererComponent and providing it is not supported. Therefore I remove it from valid props

Error message

Error message should contain the information "CellRendererComponent is not supported in Animated.FlatList"
Code:
image

Error message:
image

Test plan

Tests in __typetests__/common/AnimatedComponentTest.tsx added

@Latropos Latropos marked this pull request as ready for review April 29, 2024 13:01
@Latropos Latropos requested a review from tjzel April 29, 2024 13:01
src/reanimated2/component/FlatList.tsx Outdated Show resolved Hide resolved
Copy link
Member

@piaskowyk piaskowyk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just apply Tomek's comment and we can merge 👍

Co-authored-by: Tomasz Żelawski <40713406+tjzel@users.noreply.github.com>
@Latropos Latropos added this pull request to the merge queue May 14, 2024
Merged via the queue into main with commit 22927c8 May 14, 2024
7 checks passed
@Latropos Latropos deleted the acynk/fix-flatlist-types branch May 14, 2024 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CellRendererComponent prop does not work with Animated.Flatlist
3 participants