software-mansion / react-native-reanimated

React Native's Animated library reimplemented
https://docs.swmansion.com/react-native-reanimated/
MIT License
9.09k stars 1.32k forks source link

ScrollTo is not working in Fabric for FlashList #6646

Open Yusang-park opened 3 weeks ago

Yusang-park commented 3 weeks ago

Description

Hi, I updated the app to Fabric. I found scrollTo is not working in Flashlist. but also, working for FlatList properly.

Steps to reproduce

  const animatedRef = useAnimatedRef<FlashList<unknown>>();

  useDerivedValue(() => {
    if (scrollX) {
      scrollTo(animatedRef, scrollX.value, 0, false);
    }
  }, [scrollX?.value]);

...

return <AnimatedFlashList ref={animatedRef}

Snack or a link to a repository

Reanimated version

3.16.1

React Native version

0.76.0

Platforms

Android, iOS

JavaScript runtime

None

Workflow

Expo Dev Client

Architecture

Fabric (New Architecture)

Build type

None

Device

None

Device model

No response

Acknowledgements

Yes

github-actions[bot] commented 3 weeks ago

Hey! 👋

The issue doesn't seem to contain a minimal reproduction.

Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem?

github-actions[bot] commented 3 weeks ago

Hey! 👋

It looks like you've omitted a few important sections from the issue template.

Please complete Snack or a link to a repository section.