3.5.7 • Published 2 years ago

react-native-flip-card v3.5.7

Weekly downloads
10,237
License
MIT
Repository
github
Last release
2 years ago

react-native-flip-card

The card component which have motion of flip for React Native(iOS/Android)

NPM

npmnpm

js-standard-style forthebadge

Demo

npm.io

Installation

in Cli

npm i react-native-flip-card

Usage

Simple

import FlipCard from 'react-native-flip-card'

<FlipCard>
  {/* Face Side */}
  <View style={styles.face}>
    <Text>The Face</Text>
  </View>
  {/* Back Side */}
  <View style={styles.back}>
    <Text>The Back</Text>
  </View>
</FlipCard>

Customized

<FlipCard 
  style={styles.card}
  friction={6}
  perspective={1000}
  flipHorizontal={true}
  flipVertical={false}
  flip={false}
  clickable={true}
  onFlipEnd={(isFlipEnd)=>{console.log('isFlipEnd', isFlipEnd)}}
>
  {/* Face Side */}
  <View style={styles.face}>
    <Text>The Face</Text>
  </View>
  {/* Back Side */}
  <View style={styles.back}>
    <Text>The Back</Text>
  </View>
</FlipCard>

Props

flip(bool) Default: false

If you change default display side, you can set true to this param. If you change side, you can pass bool variable dynamically.

clickable(bool) Default: true

If you want to disable click a card, you can set false to this param.

friction(number) Default: 6

The friction of card animation

perspective(number) Default: 0

The amount of perspective applied to the flip transformation

flipHorizontal(bool) Default: false

If you set true, a card flip to horizontal.

npm.io

flipVertical(bool) Default: true

If you set false, a card not flip to vertical. If you set true both flipHorizontal and flipVertical , a card flip to diagonal.

verticaldiagnoal
npm.ionpm.io

onFlipStart(function) (isFlipStart) => {}

When a card starts a flip animation, call onFlipEnd function with param.

onFlipEnd(function) (isFlipEnd) => {}

When a card finishes a flip animation, call onFlipEnd function with param.

alignHeight(boolean) Default:false

If you pass true to alignHeight param, the card keep height of bigger side.

alignWidth(boolean) Default:false

If you pass true to alignWidth param, the card keep width of bigger side.

useNativeDriver(boolean) Default:false

If you pass true to useNativeDriver param, the card animation will utilize the native driver.

Credits

Inspired by react-flipcard

License

MIT

react-native-credit-card-input-ecotrade@scaralfred/react-native-credit-card-inputreact-native-credit-card-input-gyu-dongdaiosfoundation@gee8195/react-native-credit-card-inputrncv@everything-registry/sub-chunk-2578tasman-credit-card-inputtgo-react-native-credit-card-input@daiosfoundation/react-native-credit-card-input@bnt-ar/react-native-credit-card-input@bam.tech/react-native-credit-card-input@adalo/react-native-credit-card-input@ecotradegroup/react-native-credit-card-input@hamzasaleem2397/react-native-input-card@erhanbicer/react-native-credit-card-input@infinitebrahmanuniverse/nolb-react-native-f@liberdev/react-native-credit-card@luizaugustocs/react-native-credit-card-input@michaelkitson/react-native-credit-card-input@ivangonzalezg/react-native-credit-card-input@jaidis/react-native-credit-card-input@react-native-oh-tpl/react-native-credit-card-input@skilopay/react-native-credit-card-input@soevii/react-native-card-inputosmosys-uireact-native-datmanreact-native-credit-card-inputreact-native-credit-card-input-123react-native-credit-card-input-2react-native-credit-card-input-batteryreact-native-credit-card-input-efikareact-native-credit-card-input-ezdevsreact-native-credit-card-input-finastechreact-native-credit-card-input-fixedreact-native-credit-card-input-formreact-native-credit-card-input-fullpagereact-native-credit-card-input-gtreact-native-credit-card-input-imagereact-native-credit-card-input-newreact-native-credit-card-input-newpayreact-native-credit-card-input-sample123react-native-credit-card-input-uzreact-native-credit-card-input-verticalreact-native-credit-card-input-with-ververeact-native-credit-card-inputzreact-native-credit-cardreact-native-credit-card-brreact-native-credit-card-componentreact-native-credit-card-displayreact-native-credit-card-flowreact-native-credit-card-form-stylereact-native-credit-card-v2react-native-creditcard-prixpayreact-native-credit-card-managementreact-native-credit-card-single-pagereact-native-credit-card-uireact-native-credit-card-fullpage-formsean-react-native-credit-card-inputreact-native-input-credit-cardreact-native-input-credit-card-v2react-native-form-credit-cardreact-native-flip-inputreact-native-health-cardreact-native-mycredit-card-inputrn-cc-input-cprn-card-fliprn-card-inputreact-native-mangopayreact-native-payment-cardreact-native-vertical-input-credit-card-223react-native-vertical-credit-card-inputreact-native-vertical-input-credit-cardreact-native-tinycardreact-native-rn49-credit-card-inputrn-credit-card-viewrn-credit-card-flip-inputrn-credit-card-inputrn-credit-card-ui@zcorefinance/react-native-credit-card-display@tapnpm/react-native-credit-card-input@tapbilletera/react-native-credit-card-inputaskzuma-credit-card-inputcreate-rn-redux-toolkit-boilerplatecpp-react-native-credit-card-inputexpo-credit-cardexpo-barty-credit-card-inputfrostyk-react-native-credit-card-input
3.5.7

2 years ago

3.5.6

5 years ago

3.5.5

6 years ago

3.5.4

6 years ago

3.5.3

6 years ago

3.5.2

8 years ago

3.5.1

8 years ago

3.5.0

8 years ago

3.4.1

8 years ago

3.4.0

8 years ago

3.3.6

8 years ago

3.3.5

8 years ago

3.3.4

8 years ago

3.3.3

8 years ago

3.3.2

8 years ago

3.3.1

9 years ago

3.3.0

9 years ago

3.2.0

9 years ago

3.0.1

9 years ago

3.0.0

9 years ago

2.0.0

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago