Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
react-native-cube-transition
Advanced tools
React Native module for iOS that rotates components on a cube.
React Native module for iOS that rotates components on a cube, similar to Instagram Stories.
Install the module from npm.
npm install react-native-cube-transition --save
Link the framework in XCode.
node_modules/react-native-cube-transition
.xcodeproj
filelibRNCubeTransition.a
file under Libraries > RNCubeTransition.xcodeproj > Products
to your project's Build Phases > Link Binary With Libraries
Not supported, yet.
import React, { Component } from 'react';
import { Image, Dimensions, Text, StyleSheet, View } from 'react-native';
import { RNCubeTransition } from 'react-native-cube-transition';
export default class MyComponent extends Component {
render() {
return (
<View style={styles.container}>
<RNCubeTransition style={styles.page}>
<View style={[styles.view, styles.view1]}>
<Text style={styles.text}>3D Cube Transitions Using React Native</Text>
</View>
<Image
source={require('./assets/test-1.jpg')}
style={styles.image}
/>
<View style={[styles.view, styles.view2]}>
<Text style={styles.text}>Use View or Image components</Text>
</View>
<Image
source={require('./assets/test-2.jpg')}
style={styles.image}
/>
<View style={[styles.view, styles.view2]}>
<Text style={styles.text}>Even Gifs</Text>
</View>
<Image
source={require('./assets/test-3.gif')}
style={styles.image}
/>
</RNCubeTransition>
</View>
);
}
}
const { width, height } = Dimensions.get('window');
const styles = StyleSheet.create({
container: {
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#F5FCFF',
flex: 1,
},
page: {
position: 'absolute',
flexDirection: 'row',
overflow: 'hidden',
top: 0,
bottom: 0,
left: 0,
right: 0,
},
image: {
resizeMode: 'stretch',
width,
height,
},
view: {
justifyContent: 'center',
alignItems: 'center',
width,
height,
},
text: {
color: '#FFF',
textAlign: 'center',
fontSize: 30,
},
});
MIT
FAQs
React Native module for iOS that rotates components on a cube.
The npm package react-native-cube-transition receives a total of 3 weekly downloads. As such, react-native-cube-transition popularity was classified as not popular.
We found that react-native-cube-transition 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.