2019-09-02
1572
#react native
Paweł Karniej
5457
Sep 2, 2019 ⋅ 5 min read

How to make Tinder-like card animations with React Native

Paweł Karniej Self-made developer specializing in building React Native apps. Follow me on Instagram @selfmadedeveloper.

Recent posts:

Rxjs Adoption Guide: Overview, Examples, And Alternatives

RxJS adoption guide: Overview, examples, and alternatives

Get to know RxJS features, benefits, and more to help you understand what it is, how it works, and why you should use it.

Emmanuel Odioko
Jul 26, 2024 ⋅ 13 min read
Decoupling Monoliths Into Microservices With Feature Flags

Decoupling monoliths into microservices with feature flags

Explore how to effectively break down a monolithic application into microservices using feature flags and Flagsmith.

Kayode Adeniyi
Jul 25, 2024 ⋅ 10 min read
Lots of multi-colored blue and purplish rectangles.

Animating dialog and popover elements with CSS @starting-style

Native dialog and popover elements have their own well-defined roles in modern-day frontend web development. Dialog elements are known to […]

Rahul Chhodde
Jul 24, 2024 ⋅ 10 min read
Using Llama Index To Add Personal Data To Large Language Models

Using LlamaIndex to add personal data to LLMs

LlamaIndex provides tools for ingesting, processing, and implementing complex query workflows that combine data access with LLM prompting.

Ukeje Goodness
Jul 23, 2024 ⋅ 5 min read
View all posts

3 Replies to "How to make Tinder-like card animations with React Native"

  1. The author of this library did not use react-native-gesture-handler. These are his imports:

    import React, { Component } from ‘react’
    import { PanResponder, Text, View, Dimensions, Animated } from ‘react-native’
    import PropTypes from ‘prop-types’
    import isEqual from ‘lodash/isEqual’
    import ViewOverflow from ‘react-native-view-overflow’

    1. Hello Andrew, yes you’re right, thank you for pointing this out. Sometimes I mistake PanResponder with react-native-gesture-handler, because the react-native-gesture-handler is now a go-to gesture handler while working with React Native and it was made to replace react-native PanResponder in the longer run.

  2. How do I make that if I click the one button to move left or right or to the top?
    And how do I make it that if I move a card down it will return to the default place?
    please help

Leave a Reply