Skip to content

Lists (VirtualizedList/ScrollView) refs are broken #2965

@ospfranco

Description

@ospfranco

Environment

npm ls react-native-macos: 0.81.7

Steps to reproduce the bug

Either on LegendList or FlatList when calling scrollToIndex nothing happens. With the help of AI, I've manage to narrow it down to Refs not being captured/passed correctly.

I'm still debugging LegendList, but on FlatList, I've managed to get it working with this change on @react-native-macos/virtualized-lists/Lists/VirtualizedList.js

Image

Expected Behavior

No response

Actual Behavior

No response

Reproducible Demo

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions