leecade / leecade/react-native-swiper
Active dot is not setting up & how can I make dot clickable to change the image
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 & Android
Version
Which versions are you using:
- react-native-swiper v1.5.13
- react-native: v0.49.3
Expected behaviour
Load images dynamically using HTTP request & slider should work fine, also dot should get activated as per the current image & dots should be clickable to
Actual behaviour
I am using Phone swiper & loading images dynamically using HTTP request, images are getting loaded properly and the slider is working fine too, but the active dot is not setting up also those dots should be clickable.
Note: For static content its working fine
How to reproduce it>
Here is the code I am using
const imageList = this.state.imageList.map(list => <ImageList key={list.objectId} thumbnail={list.thumbnail} />)
<View style={styles.container}>
<StatusBar barStyle='light-content' />
<Swiper style={styles.wrapper}
dot={<View style={{backgroundColor: 'rgba(255,255,255,.3)', width: 13, height: 13, borderRadius: 7, marginLeft: 7, marginRight: 7}} />}
activeDot={<View style={{backgroundColor: '#fff', width: 13, height: 13, borderRadius: 7, marginLeft: 7, marginRight: 7}} />}
paginationStyle={{
bottom: 30
}}
loop={false}>
{imageList}
</Swiper>
</View>
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 with the Swiper usage and the dynamically generated imageList shown in the issue, then compare it with the note that static content works. Reproduce the behavior on iOS or Android with react-native-swiper v1.5.13. Done means the active dot tracks the current image and the dots can change the image.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react-native
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100