leecade / leecade/react-native-swiper

Swiper is Re-Rendering after loop is completed

Open
#1,287 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
10.5k
Forks
2.3k
PR merge metrics
No merged PRs in 30d

Description

Which OS ?

Android

Version

Which versions are you using:

  • react-native-swiper v 1.6.0
  • react-native v0.63.4
Expected behaviour

When loop is complete , first slide should be loaded again smoothly without re-rendering and flickering

Actual behaviour

When loop is complete , first slide image is re-rendered / refreshed and there is a blink.

How to reproduce it>
 <Swiper
      removeClippedSubviews={false}
      autoplay
      key={jsonMovies.length}
      loadMinimal={true}
      loop={true}
      loadMinimalSize={1}
      loadMinimalLoader={<ActivityIndicator />}
    >
      {Pages()}
    </Swiper>
Steps to reproduce

1.Add loop={true}

I tried to add removeClippedSubviews={false} like suggested in other posts , still the sliders are rendered again after loop ended.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue on Android with react-native-swiper v1.6.0 and React Native v0.63.4 using the provided Swiper configuration, especially loop and autoplay. Trace the loop transition and slide image rendering; done means the first slide returns smoothly after a loop without re-rendering, refreshing, or flickering.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react-native
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.