npm.io
1.0.1 • Published 8 years ago

react-native-tinycard

Licence
ISC
Version
1.0.1
Deps
1
Vulns
0
Weekly
0
Stars
6

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

Keywords