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

[All-iPhone-Device] Two photos are displayed in one picture in the Swiper #1365

Open
satheeshclarkee opened this issue Dec 8, 2023 · 1 comment

Comments

@satheeshclarkee
Copy link

Which OS ?

  • IOS

Version

Which versions are you using:

  • iPhone 14 and above
  • react-native-swiper v?
    1.6.0
  • react-native v0.?.?
    0.71.6

Expected behaviour

  • For Android devices, the transition between the images was smooth when I clicked prevButton or nextButton but it's not the same for IOS mobile devices.
  • It should show only one image in the swiper but it shows the two images.
  • As per my knowledge, when we add more images to Swiper it always pushes these images to the LHS.

Actual behaviour

Screenshot 2023-12-08 at 18 29 03

How to reproduce it>

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

Steps to reproduce

  1. Scan the images using a native camera and I am sending these scanned images to the Swiper component.
  2. When I click on the prevButton or nextButton button it's not showing the proper image(s) in the Swiper component.
  3. I've attached the screen shot.

Thank you for your time.

@xieguanghui200888
Copy link

I also encountered this problem,
This is done by setting loadMinimal={true} and
Solved by loadMinimalSize={3}.
The value of loadMinimalSize can be modified as needed
You can try

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

No branches or pull requests

2 participants