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

feat(ios): update ViewPager's pageIndex automatically after data changes #3857

Merged
merged 2 commits into from
May 16, 2024

Commits on May 15, 2024

  1. feat(ios): pageIndex of ViewPager auto update after data changes

    Also fixed the issue of missing onPageSelected callbacks upon first entry;
    
    The logic for automatic updates keep same with Android, as follows
    1. If the previous item only changes its location,
    update the current location and keep the current item displayed.
    2. If the previous item does not exist, do not adjust the position,
    but keep the current position in the valid range (that is, 0 ~ count-1).
    wwwcg committed May 15, 2024
    Configuration menu
    Copy the full SHA
    188148c View commit details
    Browse the repository at this point in the history

Commits on May 16, 2024

  1. fix(ios): auto-update of page index may lag by one frame in view pager

    this is a minor fix for feat 'pageIndex of ViewPager auto update after data changes'
    wwwcg committed May 16, 2024
    Configuration menu
    Copy the full SHA
    3318fb1 View commit details
    Browse the repository at this point in the history