alexbrillant / react-native-deck-swiper

tinder like react-native deck swiper
ISC License
1.57k stars 464 forks source link

Swiping not working #333

Open eth-jashan opened 4 years ago

eth-jashan commented 4 years ago

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

alparslanyilmaaz commented 4 years ago

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

eth-jashan commented 4 years ago

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

webraptor commented 4 years ago

What version of the swiper are you guys using?

alparslanyilmaaz commented 4 years ago

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

eth-jashan commented 4 years ago

@webraptor it's 2.0.5

eth-jashan commented 4 years ago

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

alparslanyilmaaz commented 4 years ago

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

webraptor commented 4 years ago

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

eth-jashan commented 4 years ago

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

webraptor commented 4 years ago

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

eth-jashan commented 4 years ago

@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 commented 4 years ago

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

alparslanyilmaaz commented 4 years ago

@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

eth-jashan commented 4 years ago

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

richardwu commented 3 years ago

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",
  },
Pollohollo commented 2 years ago

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