
Research
/Security News
Contagious Interview Campaign Escalates With 67 Malicious npm Packages and New Malware Loader
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
react-native-flip-component
Advanced tools
npm install react-native-flip-component --save
Pass a boolean, front component, and back component as props. The boolean will determine if the front or back component should be displayed.
To see the code from this GIF, check out example.js
in the repo on GitHub.
Name | Required? | Description |
---|---|---|
isFlipped | true | Boolean that controls if the view is flipped. |
frontView | true | Component for the front view. |
backView | true | Component for the back view. |
scale | false | Controls if the view zooms in or out while flipping. Defaults to 0.8 |
scaleDuration | false | Controls how quickly the scale changes. Defaults to 100 |
frontPerspective | false | Controls the perception of depth for the front component. Defaults to 1000 |
backPerspective | false | Controls the perception of depth for the back component. Defaults to 1000 |
rotateDuration | false | Controls the duration of the rotation. Defaults to 300 |
containerStyles | false | Styles for the flip-component's container <View> . Defaults to null |
frontStyles | false | Styles for the <Animated.View> that wraps the front component. Defaults to null |
backStyles | false | Styles for the <Animated.View> that wraps the back component. Defaults to null |
import React, { Component } from 'react';
import FlipComponent from 'react-native-flip-component';
import { View, Button, Text } from 'react-native';
class Example extends Component {
constructor(props) {
super(props);
this.state = {
isFlipped: false;
};
}
render() {
<View>
<FlipComponent
isFlipped={this.state.isFlipped}
frontView={
<View>
<Text style={{ textAlign: 'center' }}>
Front Side
</Text>
</View>
}
backView={
<View>
<Text style={{ textAlign: 'center' }}>
Back Side
</Text>
</View>
}
/>
<Button
onPress={() => {
this.setState({ isFlipped: !this.state.isFlipped })
}}
title="Flip"
/>
</View>
}
}
FAQs
Double-sided React component that flips 180 degrees
The npm package react-native-flip-component receives a total of 12 weekly downloads. As such, react-native-flip-component popularity was classified as not popular.
We found that react-native-flip-component demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.