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

Swiper fliker when loop and loadMinimal are enabled #1062

Closed
luiscerqueira opened this issue Sep 13, 2019 · 1 comment
Closed

Swiper fliker when loop and loadMinimal are enabled #1062

luiscerqueira opened this issue Sep 13, 2019 · 1 comment
Assignees
Labels
🐛bug Resolution: Missing Example This issue may not have example for a contributor to take action. Resolution: Old Version

Comments

@luiscerqueira
Copy link

When setting the loop mode and loadMinimal to true, the component flickers when swipping from the last item to the first, or from the first to the last (currently using images as items).

Which OS ?

Android

Version

  • react-native-swiper v1.5.14
  • react-native v0.59.0

Expected behaviour

Expect the component to changes from items smoothly.

Actual behaviour

The items are flickering

How to reproduce it>

To help us, please fork this component, modify one example in examples folder to reproduce your issue and include link here.

Steps to reproduce

  1. Create a react-native-swiper with n children images components
  2. Set loop and loadMinimal props to true
  3. Swipe from the first to the last component of the swiper.
  4. Swipe from the last to the first component of the swiper.
  5. The component will flicker, like he is unmounting the visible items, and mounting again.
@luiscerqueira luiscerqueira changed the title Swiper fliker when Swiper fliker when loop and loadMinimal are enabled Sep 13, 2019
@ArrayZoneYour ArrayZoneYour added Resolution: Old Version 🐛bug Resolution: Missing Example This issue may not have example for a contributor to take action. labels Sep 29, 2019
@ArrayZoneYour
Copy link
Collaborator

ArrayZoneYour commented Sep 29, 2019

I prevent the first and last elements' unmount in 1.6.0-rc.1.

@ArrayZoneYour ArrayZoneYour self-assigned this Sep 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛bug Resolution: Missing Example This issue may not have example for a contributor to take action. Resolution: Old Version
Projects
None yet
Development

No branches or pull requests

2 participants