
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
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.
GIF coming soon...
Name | Required? | Description |
---|---|---|
isFlipped | true | boolean |
frontView | true | Component |
backView | true | Component |
scale | false | defaults to 0.8 |
scaleDuration | false | defaults to 100 |
frontPerspective | false | defaults to 1000 |
backPerspective | false | defaults to 1000 |
rotateDuration | false | defaults to 300 |
containerStyles | false | defaults to { flex: 1 } |
frontStyles | false | defaults to null |
backStyles | false | 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 33 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
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.