Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
react-native-wiggle-box
Advanced tools
A box that wiggles for clickable attention
yarn add react-native-wiggle-box
OR
npm install react-native-wiggle-box
import React from 'react'
import { View, Text, StyleSheet } from 'react-native'
import WiggleBox from 'react-native-wiggle-box'
class Example extends React.Component {
handleClick = () => console.log("You've just clicked on the box")
render() {
<View>
<WiggleBox
active={true}
handlePress={this.handleClick}
boxStyle={styles.boxContainer}
duration={200}
type={'wiggle'}
>
<Text>
I wiggle
</Text>
</WiggleBox>
<WiggleBox
active={true}
handlePress={this.handleClick}
boxStyle={styles.boxContainer}
type={'bounce'}
>
<Text>
I bounce
</Text>
</WiggleBox>
</View>
}
}
const styles = StyleSheet.create({
boxContainer: {
backgroundColor: "#3BD0F5",
height: 100,
width: 100,
alignItems: "center",
justifyContent: "center"
}
})
Property | Description | Type | Default Value |
---|---|---|---|
active | Value toggling wiggle of box | Boolean | false |
boxStyle | Styles of box | Object | {} |
handlePress | Function to execute on click of the box | Function | () => {} |
duration | Time (ms) for duration of animation | Integer | 100 |
type | Distinguish between wiggle or bounce, to draw attention | String | wiggle |
Contributions are welcome!
git checkout -b my-new-feature
git commit -am 'Add some feature'
git push origin my-new-feature
Or open up a issue.
MIT
FAQs
A react native box that wiggles for attention
The npm package react-native-wiggle-box receives a total of 7 weekly downloads. As such, react-native-wiggle-box popularity was classified as not popular.
We found that react-native-wiggle-box 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
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.