leecade / leecade/react-native-swiper
Index changes while clicked on TextInput is clicked
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: XCode 10.1
- react-native-swiper: 1.5.14
- react-native-cli: 2.0.1
- react-native: 0.58.5
Expected behaviour
I have 2 pages within swiper. After entering the username into TextInput, when submit is clicked swiper should scroll to next index. Working perfectly fine on Android.
Actual behaviour
But in iOS, when clicked on textInput, suddenly swiper index changes and scrolls to next page.
Swiper is working fine without text inputs within swiper. And issue is only in iOS.
Can anyone help me out?
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 iOS-only behavior with two swiper pages containing a TextInput, using the reported react-native-swiper 1.5.14 and React Native 0.58.5 versions. Compare the index and scroll behavior when the TextInput is focused and when the submit action is used; done means focusing the input no longer advances the swiper unexpectedly while submitting still advances it.
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
- Needs clarification
- Newbie friendliness
- 35/100