Giter Site home page Giter Site logo

Comments (9)

vitorebatista avatar vitorebatista commented on May 26, 2024 2

It's possible to use refs to trigger the options yup and nope.
You can check in this repo:
https://github.com/VctrySam/Tinder/blob/master/App/components/home.js#L114

Tip: use _forceLeftSwipe and _forceRightSwipe instead of _goToNextCard

from react-native-tinder-swipe-cards.

Naoto-Ida avatar Naoto-Ida commented on May 26, 2024 1

Sorry guys, haven't had time to commit this and it was done when I just started with RN so it's very sloppy.
I had difficulty isolating the buttons from the lib as it was rendered inside of the card container...
I think @vitorebatista's approach is better.

from react-native-tinder-swipe-cards.

Naoto-Ida avatar Naoto-Ida commented on May 26, 2024

I second that idea. I'm actually currently working on it, might send a PR to the mods.

from react-native-tinder-swipe-cards.

 avatar commented on May 26, 2024

Any advancements gentlemen?

from react-native-tinder-swipe-cards.

Naoto-Ida avatar Naoto-Ida commented on May 26, 2024

I made some modifications to the library and released it with this app where you vote on artists with a Tinder-like interface. If you like it, I could look into doing a fork of the latest build and modifying it so it is generic.

from react-native-tinder-swipe-cards.

vitorebatista avatar vitorebatista commented on May 26, 2024

It'll be great a PR @Naoto-Ida :)

from react-native-tinder-swipe-cards.

Naoto-Ida avatar Naoto-Ida commented on May 26, 2024

OK, I'll try and get something out this week.

from react-native-tinder-swipe-cards.

helloncanella avatar helloncanella commented on May 26, 2024

Any update?

from react-native-tinder-swipe-cards.

hstemplewski avatar hstemplewski commented on May 26, 2024

@vitorebatista yes you right, but what if someone wants to animate card and trigger yup/nope function ?

from react-native-tinder-swipe-cards.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.