Open alainib opened 6 years ago
no one have an idea please ?
Set width and heightin Swiper Component fix Android for me.
const { height, width } = Dimensions.get('window');
<Swiper
...
height={height}
width={width}
>
...
</Swiper>
this doesn't work for me :< try the snack demo
Same issue here, no slolution yet ?
me too :(
I was able to solve this by delaying render using componentDidMount -- my solution is based on a suggestion by @WhiteClouds2009 plus a small delay (see my comment on #435).
I'm passed on react-native-modalbox, it works like native modal so code changing is very limitated
add style={{flex:1}} to the Modal component
Fixed it. Check my comment here https://github.com/leecade/react-native-swiper/issues/716#issuecomment-370617689 , works for modal too
I have this issue on some ios devices (X works but 7 do not). Basically, it looks like modal or swipe need to have a height value. if both have flex, this error will be visible.
Set width and heightin Swiper Component fix Android for me.
const { height, width } = Dimensions.get('window'); <Swiper ... height={height} width={width} > ... </Swiper>
this solved the issue of a single image not loading for me.
Which OS ?
Android
Version
Which versions are you using:
Actual behaviour
I display a Modal with swiper inside it. I get a blank display, only the button of the swiper but not the content :
Expected behaviour
To show the content of the swiper inside a modal
How to reproduce it>
try it in snack https://snack.expo.io/rk8rb3ZzM
or my code
Steps to reproduce