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

ProgressiveListView: ref is not a prop. Trying to access it will result in undefined being returned #1559

Closed
2 tasks done
quocluongha opened this issue Mar 14, 2025 · 6 comments · Fixed by #1573
Closed
2 tasks done
Labels
bug Something isn't working

Comments

@quocluongha
Copy link

Current behavior

After upgrade to version 1.7.5. The ref is working fine but I encounter this warning when using FlashList.

Image

Expected behavior

There is no warning.

To Reproduce

Please follow the snippet below:

const listRef = useRef(null);

<FlashList
  ref={listRef}
  estimatedItemSize={100}
  data={[1, 1, 1, 1]}
  renderItem={() => <View style={{ height: 100 }}/>}
/>

Platform:

  • iOS
  • Android

Environment

  • @shopify/flash-list: 1.7.5
  • react-native: 0.77.1
@quocluongha quocluongha added the bug Something isn't working label Mar 14, 2025
@blueromans
Copy link

Same as 1.7.2 and 1.7.4 too.

@MrAdex77
Copy link

I have the same problem using react 18.3.1, react native 0.75.4, and flash-list 1.7.5, but it doesn't occur on flash-list 1.7.3

@naqvitalha
Copy link
Collaborator

I'm looking into this. If you're not on RN 0.78, continue using v1.7.3 for now. I'll fix this.

@naqvitalha
Copy link
Collaborator

We will publish the new version with the fix on Monday.

@iffa
Copy link

iffa commented Mar 18, 2025

We will publish the new version with the fix on Monday.

Any ETA on the fix? It is Tuesday. 🙏🏼

@naqvitalha
Copy link
Collaborator

Apologies for the delay! I've raised the PR. Once it's in, we'll push out a new version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants