React-native-swiper: When i use Index, my swiper is deteriorates

Created on 3 Apr 2019  路  2Comments  路  Source: leecade/react-native-swiper

Which OS

IOS

Version

Which versions are you using:

  • react-native-swiper v:1.5.14
  • react-native v: 0.58.4

Expected behaviour

Hi,
I want to use index

Actual behaviour

when 谋 use index, my swipper is deteriorates like a below image

Ekran Resmi 2019-04-03 16 09 02

    onIndexChanged = (newIndex) => {
        this.setState({
            currency: this.state.itemsData[newIndex].symbol,
            qrCode: this.state.itemsData[newIndex].wallet,
            sliderIndex: newIndex

        });
    };
....
                    {this.state.sliderLoader ?
                        <View
                            style={{
                                flex: 1,
                                justifyContent: 'center',
                                alignItems: 'center',

                            }}>
                            <ActivityIndicator size={'large'} color={colors.primary}/>

                        </View>
                        :

                        <Swiper
                            showsButtons={false}
                            onIndexChanged={this.onIndexChanged}
                            loop={false}
                            index={this.state.sliderIndex}
                            paginationStyle={{
                                bottom: -25
                            }}
                        >
                            {this.renderControls()}
                        </Swiper>
                    }


Most helpful comment

@cihanbas I have the same issue, did you find a solution?

All 2 comments

@cihanbas I have the same issue, did you find a solution?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gwhite-dayspring picture gwhite-dayspring  路  3Comments

diegolmello picture diegolmello  路  3Comments

JonasOmdal picture JonasOmdal  路  3Comments

nomoreboredom picture nomoreboredom  路  3Comments

tokict picture tokict  路  3Comments