React-native-swiper: react-native 0.48.3 swiper inside scrollview white space on android.

Created on 18 Sep 2017  路  17Comments  路  Source: leecade/react-native-swiper

Which OS ?

Android

Version

Which versions are you using:

  • react-native-swiper 1.5.12
  • react-native v0.48.3

Expected behaviour

Should show image

Actual behaviour

white space nothing come up.
Note: it works without scrollview as expected.

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.
-






   style.sliderBox = {flex: 1}

Most helpful comment

add containerStyle={{width: Dimensions.get("window").width}}

All 17 comments

+1

same problem here

+1

+1

add containerStyle={{width: Dimensions.get("window").width}}

same problem here

same problem here

Reproduced on the ios 11 with Expo

+1

+1. Bump.

Adding containerStyle width & height to Swiper component solved the problem for me

<Swiper containerStyle={{ width: Dimensions.get('window').width, height: Dimensions.get('window').height }} />

The workaround doesn't work for me. Trying to display an array of wix/react-native-calendars inside the swiper and it doesn't show anything on Android (works on iOS)

There is a better solution: https://github.com/leecade/react-native-swiper/issues/416#issuecomment-309785923

<Swiper removeClippedSubviews={false} .../>

This issue remains for me and the suggested solution does not work for me either. I want to know whether or not there is some solution..

Same issue , any other solution !?

<ViewPagerAndroid ref='scrollView' {...this.props} key={pages.length} initialPage={this.state.index} onPageSelected={this.onScrollEnd} style={{flex: 1}}> {pages} </ViewPagerAndroid>

add key.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kylehagler picture kylehagler  路  3Comments

nomoreboredom picture nomoreboredom  路  3Comments

chetanparakh picture chetanparakh  路  3Comments

ghost picture ghost  路  3Comments

wrannaman picture wrannaman  路  3Comments