Gathering detailed insights and metrics for react-native-flip-card-plus
Gathering detailed insights and metrics for react-native-flip-card-plus
Gathering detailed insights and metrics for react-native-flip-card-plus
Gathering detailed insights and metrics for react-native-flip-card-plus
@towerguards/react-native-credit-card-input-plus-v2
React native credit card input component
react-native-credit-card-input-plus-cr
React native credit card input component
@towerguards/react-native-credit-card-input-plus
React native credit card input component
@yetuny/react-native-credit-card-input-plus-tr
React native credit card input component
The card component which has a motion of flip for React Native(Android/iOS) with gestures
npm install react-native-flip-card-plus
Typescript
Module System
Node Version
NPM Version
68.9
Supply Chain
98.1
Quality
75.3
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
25,416
Last Day
1
Last Week
149
Last Month
300
Last Year
6,059
MIT License
9 Stars
15 Commits
1 Forks
1 Watchers
2 Branches
2 Contributors
Updated on Apr 24, 2023
Latest Version
2.0.0
Package Id
react-native-flip-card-plus@2.0.0
Unpacked Size
16.91 kB
Size
4.35 kB
File Count
5
NPM Version
7.3.0
Node Version
15.5.0
Cumulative downloads
Total Downloads
Last Day
-90%
1
Compared to previous day
Last Week
181.1%
149
Compared to previous week
Last Month
-33%
300
Compared to previous month
Last Year
9.9%
6,059
Compared to previous year
2
The card component which has a motion of flip for React Native(Android/ios) with gestures
npm i react-native-flip-card-plus
Once you're up and running
import React, { Component } from 'react';
import {
Text,
View,
Button,
StyleSheet,
TouchableOpacity,
Pressable,
} from 'react-native';
import FlipCard from "react-native-flip-card-plus";
export default class App extends Component {
constructor(props) {
super(props);
this.card = React.createRef();
}
render() {
return (
<View style={styles.container}>
<FlipCard
flipDirection={"h"}
style={styles.cardContainer}
ref={(card) => (this.card = card)}
onFlipStart={() => console.log('onFlipStart')}
onFlipEnd={() => console.log('onFlipEnd')}>
<Pressable
style={styles.card}
onLongPress={() => alert('onLongPress')}>
<Text style={styles.label}>FRONT</Text>
</Pressable>
<Pressable style={styles.card} onPress={() => alert('onPress')}>
<Text style={styles.label}>BACK</Text>
</Pressable>
</FlipCard>
<View style={styles.manualTriggers}>
<Pressable
style={styles.trigger}
onPress={() => this.card.flipHorizontal()}>
<Text style={{ color: 'white' }}>Horizontal</Text>
</Pressable>
<Pressable
style={styles.trigger}
onPress={() => this.card.flipVertical()}>
<Text style={{ color: 'white' }}>Vetical</Text>
</Pressable>
</View>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#F5FCFF',
},
cardContainer: {
width: 220,
height: 270,
},
card: {
width: 220,
height: 270,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#FE474C',
borderRadius: 5,
shadowColor: 'rgba(0,0,0,0.5)',
shadowOffset: {
width: 0,
height: 1,
},
shadowOpacity: 0.5,
},
label: {
textAlign: 'center',
fontSize: 25,
fontFamily: 'System',
color: '#ffffff',
backgroundColor: 'transparent',
},
manualTriggers: {
flexDirection: 'row',
},
trigger: {
backgroundColor: 'black',
margin: 20,
paddingHorizontal: 10,
paddingVertical: 5,
borderRadius: 5,
shadowColor: 'rgba(0,0,0,0.5)',
shadowOffset: {
width: 0,
height: 1,
},
shadowOpacity: 0.5,
},
});
import React, { Component } from 'react';
import { Text, View, Button, StyleSheet, Pressable } from 'react-native';
import FlipCard from "react-native-flip-card-plus";
export default class App extends Component {
constructor(props) {
super(props);
this.multiCardRef = [];
this.state = {
cards: ['CARD1', 'CARD2'],
};
}
render() {
return (
<View style={styles.container}>
{this.state.cards.map((item, index) => {
return (
<>
<FlipCard
flipDirection={'h'}
style={styles.cardContainer}
onFlipStart={() => console.log('onFlipStart')}
onFlipEnd={() => console.log('onFlipEnd')}
ref={(card) => (this.multiCardRef['card' + index] = card)}>
<Pressable
style={styles.card}
onLongPress={() => alert('onLongPress')}>
<Text style={styles.label}>{item} Front</Text>
</Pressable>
<Pressable style={styles.card} onPress={() => alert('onPress')}>
<Text style={styles.label}>{item} Back</Text>
</Pressable>
</FlipCard>
<View style={styles.manualTriggers}>
<Pressable
style={styles.trigger}
onPress={() =>
this.multiCardRef['card' + index].flipHorizontal()
}>
<Text style={{ color: 'white' }}>Horizontal</Text>
</Pressable>
<Pressable
style={styles.trigger}
onPress={() =>
this.multiCardRef['card' + index].flipVertical()
}>
<Text style={{ color: 'white' }}>Vetical</Text>
</Pressable>
</View>
</>
);
})}
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#F5FCFF',
},
cardContainer: {
width: 220,
height: 270,
},
card: {
width: 220,
height: 270,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#FE474C',
borderRadius: 5,
shadowColor: 'rgba(0,0,0,0.5)',
shadowOffset: {
width: 0,
height: 1,
},
shadowOpacity: 0.5,
},
label: {
textAlign: 'center',
fontSize: 25,
fontFamily: 'System',
color: '#ffffff',
backgroundColor: 'transparent',
},
manualTriggers: {
flexDirection: 'row',
},
trigger: {
backgroundColor: 'black',
margin: 20,
paddingHorizontal: 10,
paddingVertical: 5,
borderRadius: 5,
shadowColor: 'rgba(0,0,0,0.5)',
shadowOffset: {
width: 0,
height: 1,
},
shadowOpacity: 0.5,
},
});
Props | type | description | required | default |
---|---|---|---|---|
style | object | container style | {} | |
duration | number | flip duration | 1000 | |
flipZoom | number | zoom level on flip | 0.09 | |
flipDirection | string | 'h' or 'v' | if swipeable | 'h' |
perspective | number | 800 | ||
flipHorizontal | function | Flip horizontal trigger | ||
flipVertical | function | Flip vertical trigger | ||
swipeable | bool | enable/disable gesture swipe | true |
Props | type | description |
---|---|---|
onFlipStart | func | function to be called when the flip-animation starts. it receives the card-sides index |
onFlipEnd | func | function to be called when the flip-animation ends. it receives the card-sides index |
Inspired by react-native-card-flip
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/12 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More