/react-native-tinycard

A card component inspired by Tinycards.

Primary LanguageJavaScript

contributions welcome npm version

Card component inspired by Tinycards

Dependencies

  1. react-native-flip-card

Installation

  1. yarn add react-native-tinycard

Usage

import React, {Component} from 'react'
import {View} from 'react-native'
import Tinycard from 'react-native-tinycard'

class App extends Component {
    render() {
        <View>
            <Tinycard
                word={'book'}
                translation={'libra'}
                onContinue={() => console.log('Swipped the card. Showing next!')}
            />
        </View>
    }
}

Running the example project

  1. Fork and clone the rope
  2. cd react-native-tinycard
  3. Install dependencies: cd example && yarn
  4. Symlink the source code to get livesync: npm link ../
  5. Run the project from main dir: cd .. && yarn start