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 override to flatlist built in functionality needed for initial item rendering bug #547

Merged
merged 1 commit into from
Oct 27, 2019

Conversation

rontalx
Copy link
Contributor

@rontalx rontalx commented Jun 26, 2019

This is referring to issues related to firstItem rendering not working reliably. (#538, #193 )
By using getItemLayout & initialScrollIndex, I am able to pass the relevant values to FlatList and resolve the wrong firstItem being rendered without having to useScrollView or set initialNumToRender={data.length}.

make sure to understand how to use both properties together:
https://facebook.github.io/react-native/docs/flatlist#initialscrollindex
https://facebook.github.io/react-native/docs/flatlist#getitemlayout

@rontalx rontalx changed the title remove override to flatlist built in functionality needed for initial item rendering remove override to flatlist built in functionality needed for initial item rendering bug Jun 26, 2019
@bd-arc bd-arc mentioned this pull request Jun 26, 2019
5 tasks
@rontalx
Copy link
Contributor Author

rontalx commented Jul 11, 2019

Reverted for now.
Will separate PR's

@bd-arc bd-arc merged commit 5ec564d into meliorence:master Oct 27, 2019
@bd-arc
Copy link
Contributor

bd-arc commented Oct 27, 2019

Available in version 3.8.3.

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.

2 participants