Closed
Description
Hi,
I have list view which displays partially local and partially remote data. Local data are initial for ListView.DataSource. This datasource is set in state of my custom component which wraps ListView and passed in render method to ListView. When are remote data received, new datasource is cloned by cloneWithRowsAndSections method and set to state of custom component. Problem is that are re-rendered only already displayed rows and new rows are rendered after scroll.
Is it bug or how I should to force rendering of ListView? With react-native 0.5 it worked but after upgrade to 0.6 it behaves as described above.
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
Furizaa commentedon Jul 2, 2015
+1
Encountering exactly the same problem. Worked with 0.5 but broke with 0.6.
ide commentedon Jul 2, 2015
This should be fixed in 0.7
yamill commentedon Jul 2, 2015
I was experience the same exact problem.
cloneWithRows works fine. but cloneWithRowsandSections doesn't.
sahrens commentedon Jul 2, 2015
Are you seeing cloneWithRowsandSections not working with 0.7?
Also, you might want to try setting initialListSize to a larger number - that might help as a workaround if things aren't fixed in 0.7 for you.
michalraska commentedon Jul 3, 2015
Bigger initialListSize does not help and 0.7 I have not tried yet because vendors dependency. As it will be possible I let you know about 0.7 if somebody will not be quicker :)
coderdave commentedon Jul 4, 2015
Having the same issue with cloneWithRows in version 0.6, was working in 0.5.
yamill commentedon Jul 4, 2015
Haven't tried it in 0.7. Will give it a try. I know that I also had tried setting the initialListSize to a higher number previously and didn't help.
Shimaa-Hassan commentedon Jul 8, 2015
worked in 0.7
coderdave commentedon Jul 12, 2015
Also not working in 0.7.1
ghislaindj commentedon Jul 15, 2015
Having the same issue with cloneWithRows in version 0.7.1
michalraska commentedon Jul 23, 2015
For me it works well in 0.7.1.
yamill commentedon Jul 29, 2015
Does not work in 0.8.0.
Still using
cloneWithRows
instead ofcloneWithRowsAndSections
coderdave commentedon Jul 29, 2015
cloneWithRows
works for you yamill? Doesn't for me in 0.8.0.yamill commentedon Jul 29, 2015
@coderdave actually
cloneWithRows
doesn't work for me either. my mistake.261 remaining items