The card component which has a motion of flip for React Native(iOS/Android)
npm install react-native-flip-cardreact-native-flip-card
===
> The card component which have motion of flip for React Native(iOS/Android)

![npm]()![npm]()
 
Demo
---

Installation
==
in Cli
---
``
`
npm i react-native-flip-card
`
Usage
===
Simple
---
`
import FlipCard from 'react-native-flip-card'
{/ Face Side /}
{/ Back Side /}
`
Customized
---
`
friction={6}
perspective={1000}
flipHorizontal={true}
flipVertical={false}
flip={false}
clickable={true}
onFlipEnd={(isFlipEnd)=>{console.log('isFlipEnd', isFlipEnd)}}
>
{/ Face Side /}
{/ Back Side /}
Default: false
Props
===
flip(bool)
true
---
If you change default display side, you can set to this param. If you change side, you can pass bool variable dynamically.
Default: true
clickable(bool)
false
---
If you want to disable click a card, you can set to this param.
Default: 6
friction(number)
Default: 0
---
The friction of card animation
perspective(number)
Default: false
---
The amount of perspective applied to the flip transformation
flipHorizontal(bool)
Default: true
---
If you set true, a card flip to horizontal.

flipVertical(bool)
flipHorizontal
---
If you set false, a card not flip to vertical. If you set true both and flipVertical , a card flip to diagonal.
(isFlipStart) => {}
vertical | diagnoal
---- | ----
| 
onFlipStart(function)
onFlipEnd
---
When a card starts a flip animation, call function with param.
(isFlipEnd) => {}
onFlipEnd(function)
onFlipEnd
---
When a card finishes a flip animation, call function with param.
Default:false
alignHeight(boolean)
true
---
If you pass to alignHeight param, the card keep height of bigger side.
Default:false
alignWidth(boolean)
true
---
If you pass to alignWidth param, the card keep width of bigger side.
Default:false
useNativeDriver(boolean)
true
---
If you pass to useNativeDriver` param, the card animation will utilize the native driver.
Credits
===
Inspired by react-flipcard
License
===
MIT