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

SectionList wrapped with Animated.createAnimatedComponent doesn't have an scoll methods #2694

Open
3 tasks done
egadstar opened this issue Dec 7, 2021 · 8 comments
Open
3 tasks done
Labels
Bug bug-bash-jan22 Issues visited during Bug Bash Jan 2022 Missing repro This issue need minimum repro scenario 🏠 Reanimated 2

Comments

@egadstar
Copy link

egadstar commented Dec 7, 2021

Description

If you wrap SectionList with Animated.createAnimatedComponent, the methods to scroll the list are no longer accessible from the ref. Based on past issues related to FlatList, I assume this is a similar issue.

Expected behavior

Expect to be able to scroll the SectionList using any of the methods from SectionList or the VirtualizedList documentation.

Actual behavior & steps to reproduce

Attempting to call any method on the ref results in undefined error.

Snack or minimal code example

https://snack.expo.dev/4C3ChMMG6

Package versions

  • React Native: 0.66.1
  • React Native Reanimated: 2.2.4

Affected platforms

  • Android
  • iOS
  • Web
@github-actions
Copy link

github-actions bot commented Dec 7, 2021

Issue validator

The issue is valid!

@j-piasecki j-piasecki added bug-bash-jan22 Issues visited during Bug Bash Jan 2022 Missing repro This issue need minimum repro scenario labels Jan 28, 2022
@hssrrw
Copy link

hssrrw commented May 25, 2022

This is still an issue in 2.8.0. Did anyone manage to find a workaround? I wonder how people use virtualized lists with reanimated. I can't make either FlatList nor SectionList work

@rnike
Copy link

rnike commented Sep 14, 2022

I am also facing an issue that might be related to this, after using createAnimatedComponent the reference of ref becomes unexpected, I am on the version 2.4.1

@MaksDubois
Copy link

The issue is still reproduced on version 2.5.0

@nmeibergen
Copy link

This seems to be resolved for me in 3.0.0-rc.3.

@Gilmara-Git
Copy link

I am facing the same issue react-native-reanimated": "~3.3.0, and react-native": "0.72.6
Has anybody seem a workaround for this ?
I needed to user ref to make my SectionList scroll to a certain index, but no goal.

@ameer2468
Copy link

Experiencing this myself too:

version: 3.6.3

@angelprzz
Copy link

Experiencing the same with version 3.10.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug bug-bash-jan22 Issues visited during Bug Bash Jan 2022 Missing repro This issue need minimum repro scenario 🏠 Reanimated 2
Projects
None yet
Development

No branches or pull requests

9 participants