leecade / leecade/react-native-swiper
Render First Initial index != 0
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 ?
Android and maybe too IOS
Version
Which versions are you using:
"react": "16.9.0",
"react-native": "0.61.3",
"react-native-swiper": "1.6.0-rc.3",
Expected behaviour
This is my Component where i use Swiper.
<View style={{ flex: 1 }}>
<Swiper
style={styles.wrapper}
showsButtons={false}
index={1}
ref={(ref: Swiper) => {
this.swiperMain = ref
}}
horizontal={true}
onIndexChanged={index => this.onIndexChanged(index)}
showsPagination={false}
>
I setted initial index = 1 ad it's ok. But when i launch app (in particular in android) i can see before render index = 1, swiper renders index = 0 in my case Profile. I have been looked for solving this problem on github or google but i didn't find anything
I can record a little video if you want
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 Android startup behavior with the shown configuration and inspect the initial render of the Swiper entry point. Compare the first displayed slide with the requested index; done means the component does not visibly render index 0 before settling on index 1.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react, 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