leecade / leecade/react-native-swiper
When i use Index, my swiper is deteriorates
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 10.5k
- Forks
- 2.3k
- PR merge metrics
- No merged PRs in 30d
Description
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

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>
}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported iOS behavior with react-native-swiper v1.5.14 and React Native v0.58.4, focusing on the Swiper index prop and onIndexChanged handler shown in the report. Clarify what “deteriorates” means from the screenshot, then verify that selecting an index leaves the swiper rendering correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react-native
- Domain
- frontend, mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100