/react-native-card-swiper

Tinder and Badoo like card stack swiper.

Primary LanguageJavaScript

react-native-card-swiper

Manual installation

Android

  1. Open up android/app/src/main/java/[...]/MainActivity.java
  • Add import com.eraydemirok.react_native_card_swiper.CardSwiperPackage; to the imports at the top of the file
  • Add new CardSwiperPackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':react-native-card-swiper'
    project(':react-native-card-swiper').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-card-swiper/android')
    
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-card-swiper')
    

Usage

import { CardStack, Card } from "react-native-card-swiper";

react-native-card-swiper