
Security News
Feross on Risky Business Weekly Podcast: npm’s Ongoing Supply Chain Attacks
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
react-native-parabolic-update
Advanced tools
Forked, for react-native 0.56.0. A react native component simulation of parabolic motion.
A react native component simulation of parabolic motion.
$ npm i react-native-parabolic --save
import Parabolic from 'react-native-parabolic'
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
AlertIOS,
Text,
View
} from 'react-native';
export default class par extends Component {
constructor(props){
super(props)
}
componentDidMount(){
setTimeout(()=>{
this.refs["parabolic"].run([20,20,200,300]) // startX startY endX endY
}, 200)
}
animateEnd(){
AlertIOS.alert("title", "animate end")
}
render() {
return (
<View style={styles.container}>
<Parabolic
ref={"parabolic"}
style={{position: "absolute", left: 30, top: 30}}
renderChildren={() => {
return (
<View style={{backgroundColor:"#f00", width: 16, height: 16, borderRadius: 8}}></View>
)
}}
animateEnd={this.animateEnd.bind(this)}
curvature={.008}
duration={250}
/>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#F5FCFF',
}
});
Prop | Default | Type | Description |
---|---|---|---|
renderChildren | function | func | render children layout |
animateEnd | function | func | animate end callback function |
curvature | 0.003 | number | Parabolic curvature |
duration | 350 | number | animate duration time |
style | null | object | animate element style |
FAQs
Forked, for react-native 0.56.0. A react native component simulation of parabolic motion.
We found that react-native-parabolic-update 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
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.