React-native-swiper: Not working on iOs

Created on 23 Oct 2019  路  4Comments  路  Source: leecade/react-native-swiper

Which OS ?

iOs

Version

Which versions are you using:

  • react-native-swiper 1.5.14
  • react-native v0.61.2?.?

At first, I hit this bug

Screenshot_20191023-150811

Then I fixed it by changing imports

Screen Shot 2019-10-23 at 3 10 33 PM

Now, it works on android but not on iphone.
I have tried almost every version of your library but no luck. Is it not supported on iPhone?

Expected behaviour

To work on iPhone

Actual behaviour

Here is the running video on android working fine

ezgif-1-c5599b43db12

Here it is on iPhone

bitchassoniphone

Old Version

Most helpful comment

Would you happen to be passing down a style prop to the swiper component? Coz I did that and was experiencing the same problem as you do. Works fine after I removed the style prop (maybe some item in the style is breaking it)

All 4 comments

Would you happen to be passing down a style prop to the swiper component? Coz I did that and was experiencing the same problem as you do. Works fine after I removed the style prop (maybe some item in the style is breaking it)

Would you happen to be passing down a style prop to the swiper component? Coz I did that and was experiencing the same problem as you do. Works fine after I removed the style prop (maybe some item in the style is breaking it)

I have tried everything. If it has to cause a problem, it should cause it on both platforms

Wrap your listitem in TouchableOpacity

@MasterAssailant I have the same on iOS when using styleprop.
My solution is add the style in a parent <View> component.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AndrewSouthpaw picture AndrewSouthpaw  路  3Comments

agzuniverse picture agzuniverse  路  3Comments

kylehagler picture kylehagler  路  3Comments

ruben-kasaz picture ruben-kasaz  路  3Comments

commit-master picture commit-master  路  3Comments