alexbrillant / react-native-deck-swiper

tinder like react-native deck swiper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Swiping not working

eth-jashan opened this issue · 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

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

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

What version of the swiper are you guys using?

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

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

@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.

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

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

@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 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 ?

@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.

@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 I tested in real device... But still I'll check it again 😅

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",
  },
commented

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