react-native-deck-swiper icon indicating copy to clipboard operation
react-native-deck-swiper copied to clipboard

Swiping not working

Open eth-jashan opened this issue 4 years ago • 16 comments

When I use it in app.js file it works, but when I use it in a screen and create a navigator of it the swiping doesn't work

eth-jashan avatar Sep 25 '20 19:09 eth-jashan

I have same issue as well, did you find any solution? @jashan69

alparslanyilmaaz avatar Sep 26 '20 19:09 alparslanyilmaaz

@alparslanyilmaaz no I didn't, but I found an package , which has solvable issue. Should I share ?

eth-jashan avatar Sep 26 '20 19:09 eth-jashan

What version of the swiper are you guys using?

webraptor avatar Sep 27 '20 09:09 webraptor

@webraptor my version is 2.0.5. @jashan69 It writes in package.json at your application root folder.

alparslanyilmaaz avatar Sep 27 '20 10:09 alparslanyilmaaz

@webraptor it's 2.0.5

eth-jashan avatar Sep 27 '20 10:09 eth-jashan

@alparslanyilmaaz any updates...is it working for youuu ?

eth-jashan avatar Sep 30 '20 15:09 eth-jashan

@jashan69 no bro, I tried to use lower versions, but it didn't work. So I changed library. https://github.com/archriss/react-native-snap-carousel maybe this will work for you also. Try this.

alparslanyilmaaz avatar Sep 30 '20 16:09 alparslanyilmaaz

@jashan69 have you tried running the example app? Does that work or not?

webraptor avatar Sep 30 '20 16:09 webraptor

@webraptor it works in App.js but when I try to run in some screen it doesn't

eth-jashan avatar Sep 30 '20 16:09 eth-jashan

@webraptor it works in App.js but when I try to run in some screen it doesn't

If you can somehow provide a reproducible scenario might be able to help out. Looks like something is preventing the swiper's pan responder from activating.

webraptor avatar Sep 30 '20 16:09 webraptor

@webraptor it works in App.js but when I try to run in some screen it doesn't

If you can somehow provide a reproducible scenario might be able to help out. Looks like something is preventing the swiper's pan responder from activating.

Should I share the repo in an hour ?

eth-jashan avatar Sep 30 '20 16:09 eth-jashan

@webraptor it works in App.js but when I try to run in some screen it doesn't

If you can somehow provide a reproducible scenario might be able to help out. Looks like something is preventing the swiper's pan responder from activating.

Should I share the repo in an hour ?

I didn't mean the entire repo. I meant a snack or something similar that can easily be used to see what the issue is.

webraptor avatar Sep 30 '20 16:09 webraptor

@jashan69 If you have still have issues i found the solution. It's emulators bug. If you test with the real device It will work perfectly

alparslanyilmaaz avatar Nov 16 '20 15:11 alparslanyilmaaz

@alparslanyilmaaz I tested in real device... But still I'll check it again 😅

eth-jashan avatar Nov 16 '20 15:11 eth-jashan

I had to add a number of styles to get it to swipe properly (since it wasn't working initially); try adding this to containerStyle:

  // This is for containerStyle in Swiper.
  swiper: {
    flex: 1,
    position: "absolute", // This HAS to be absolute, or else swiping on mobile fails!
    display: "flex",
    justifyContent: "center",
    alignItems: "center",
  },

richardwu avatar Jan 31 '21 05:01 richardwu

hello, I have the same probleme, don't know if someone found a solution, I added the styles but didn't work. (it work fine on IOS but not in android). On android, it works fine on app.js but not in my screen.js The swiper display but the swiping doesn't work

Pollohollo avatar Mar 28 '22 16:03 Pollohollo