Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Fix InitialIndex Bug + Switch from ListView -> FlatList #76

Merged
merged 5 commits into from
Oct 29, 2018

Conversation

ngandhy
Copy link
Contributor

@ngandhy ngandhy commented Dec 13, 2017

Bug:

Repro:

  • Create Viewer and set initialIndex to a non-zero value. After the viewer loads try swiping left or right. Notice the number at the top resets to 0.
  • Also notice that the image doesn't load correctly.

Solution:

ngandhy and others added 3 commits November 3, 2017 03:03
Fix issue with ListView initial index not working on iOS due to "contentOffset" bug. 
ListView is no longer supported, so switch to FlatList where the issue is fixed.

Repro:
1) Create Viewer and set initialIndex to a non-zero value. After the viewer loads try swiping left or right. Notice the number at the top resets to 0. Also notice that the image doesn't load correctly.
Fix issue with ListView initial index w/ switch to FlatList
@ngandhy
Copy link
Contributor Author

ngandhy commented Jan 12, 2018

@halilb - ping

…d use Scroll/FlatList too?)

Fix references to scrolllist-> flatlist for android. Android doesn't use flat list tho... it uses ViewPagerAndroid... might make sense to just switch both to using the same thing in the future. Functionality seems identical.
@ngandhy ngandhy changed the title Switch from ListView -> FlatList Fix InitialIndex Bug + Switch from ListView -> FlatList Jan 12, 2018
@halilb halilb merged commit 52d3034 into halilb:master Oct 29, 2018
@halilb
Copy link
Owner

halilb commented Oct 29, 2018

Thanks for this @ngandhy. This looks good.

And I'm so sorry for the late review.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants