leecade / leecade/react-native-swiper

Manually swipe left right not working in ios

Open
#803 10 comments 4 reactions 0 assignees View on GitHub

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 0.55.4

Which versions are you using:

  • react-native-swiper v? 1.5.13"
  • react-native v0.?.?
Expected behaviour

swiping left & right should work

Actual behaviour

swiping is poosible only using buttons not by swapping left right

How to reproduce it>

To help us, please fork this component, modify one example in examples folder to reproduce your issue and include link here.

<View style = {{backgroundColor:'black',height:'100%',justifyContent:'center'}}>

<Swiper
removeClippedSubviews={false}
showsButtons={true}
showsPagination={false}
nextButton={<Text style={[Styles.buttonText1,{color:'white'}]}>›}
prevButton={<Text style={[Styles.buttonText1,{color:'white'}]}>‹}
buttonWrapperStyle={{backgroundColor: 'transparent',
flexDirection: 'row', position: 'absolute', top: 0, left: 0, flex: 1, paddingHorizontal: 10, paddingVertical: 0,
justifyContent: 'space-between', alignItems: 'center'}}
index={global.pos}
//loop

  >
     {
       
    sliderArr.map(item =>

      <View key={item.img} style={{justifyContent:'center',height: 200,backgroundColor:'black' }}>

<Image style={{height:200}}
//resizeMode={'stretch'}
source={item.img }>
<Text style={{color:'white',textAlign:'center',marginTop:20}}>{item.text}

) } ### Steps to reproduce 1. 2. 3.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Swiper usage shown in the issue and the examples folder, using iOS and react-native-swiper 1.5.13. Reproduce the case where buttons work but left/right swipes do not, then inspect the relevant Swiper touch handling. Done means manual horizontal swipes change slides in the supplied configuration without breaking the buttons.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.