Card component inspired by Tinycards
yarn add react-native-tinycard
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>
}
}
- Fork and clone the rope
cd react-native-tinycard
- Install dependencies:
cd example && yarn
- Symlink the source code to get livesync:
npm link ../
- Run the project from main dir:
cd .. && yarn start