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-animated-item
Advanced tools
An animated item that slides open with some options. Useful in actionable lists.
yarn install react-native-animated-item
OR
npm install react-native-animated-item
import React from 'react'
import { View, Text, Image, StyleSheet } from 'react-native'
import AnimatedItem from 'react-native-animated-item'
class Example extends React.Component {
onActionPress = () => console.log("You have clicked on the action option")
render() {
return(
<View>
<AnimatedItem
containerStyle={styles.main}
actionStyle={styles.actionContainer}
actionPress={this.onActionPress}
actionItem={ActionContent}
>
<View>
<Text>
Some descriptive body
</Text>
</View>
</AnimatedItem>
</View>
)
}
}
const ActionContent = () => {
return(
<View>
<Image source={'<some icon>'}/>
<Text>
Options
</Text>
</View>
)
}
const styles = StyleSheet.create({
main: {
// some custom styling
},
actionContainer: {
// some custom styling
},
})
Property | Description | Default Value |
---|---|---|
containerStyle | Styles of item container | {} |
actionStyle | Styles of actionItem | {} |
actionPress | Function to execute on click of actionItem | () => {} |
actionItem | JSX component to display when slid open | Fallback component with text |
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
Simple animated slide component
The npm package react-native-animated-item receives a total of 0 weekly downloads. As such, react-native-animated-item popularity was classified as not popular.
We found that react-native-animated-item 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.