React-native-swiper: Slider does not show although I see it in devtools.

Created on 7 Sep 2017  ·  3Comments  ·  Source: leecade/react-native-swiper

The code worked with 1.5.4.
I just updated to newest ones and discovered nothing above 1.5.5 works

Which OS ?

Android

Version

Which versions are you using:
7.0

  • react-native-swiper v?
    any above 1.5.5
  • react-native v0.?.?
    48.0

Expected behaviour

Render swiper

Actual behaviour

No swiper

How to reproduce it

It cant even render basic default swiper with two slides that were working before.
-

Steps to reproduce

1.Create slider
2.Put 2 slides
3.Try to run

Need answer from author 🐛bug

Most helpful comment

I got this problem too.

  • Make parent views of <Swiper> fill the whole screen (maybe using flex: 1)
  • Add property removeClippedSubviews={false} to <Swiper>
  • Do not use flex: 1 on <Swiper>
    (weird but for me, it would stop swipe-touch handler completely 🤔)

All 3 comments

I got this problem too.

  • Make parent views of <Swiper> fill the whole screen (maybe using flex: 1)
  • Add property removeClippedSubviews={false} to <Swiper>
  • Do not use flex: 1 on <Swiper>
    (weird but for me, it would stop swipe-touch handler completely 🤔)

Have you tried with the latest version, 1.5.12? @nimatrueway and @tokict
Can you show some code by forking the project and reproducing the bug in you forked project?
If you have a solution working, PR are welcome

Setting the parent height fixes the issue. It is still present in 1.5.12.

Was this page helpful?
0 / 5 - 0 ratings