Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@animatereactnative/stagger
Advanced tools
React Native Stagger component, a cross-platform stagger orchestrator component, powered by Reanimated:
reanimated@>=3.4.0
)npm install @animatereactnative/stagger
Also, you need to install react-native-reanimated, and follow their installation instructions.
import { Stagger } from '@animatereactnative/stagger';
// ...
export function Example() {
return (
<Stagger
stagger={50}
duration={300}
exitDirection={-1}
entering={() => ZoomInEasyDown.springify()}
exiting={() => FadeOutDown.springify()}
style={{
flexDirection: 'row',
flexWrap: 'wrap',
justifyContent: 'center',
gap: 12,
}}
>
<Paragraph>1. Custom duration</Paragraph>
<Paragraph>2. Custom stagger</Paragraph>
<Paragraph>3. Custom animation</Paragraph>
<Paragraph>4. Custom enter/exit direction</Paragraph>
<Heading>AnimateReactNative.com</Heading>
<Heading>Powered by Reanimated 3</Heading>
<Heading>Works with Expo ❤️</Heading>
</Stagger>
);
}
name | description | required | type | default |
---|---|---|---|---|
children | Any component that you'd like to apply infinite scrolling / marquee effect | YES | React.ReactNode | 1 |
enabled | Enable stagger animation | NO | boolean | true |
stagger | Stagger duration between elements | NO | number | 50 |
duration | Enter/Exit animation duration | NO | number | 400 |
enterDirection | The direction of the animation. 1 -> top to bottom , -1 -> bottom to top | NO | number | 0 |
exitDirection | The direction of the animation. 1 -> top to bottom , -1 -> bottom to top | NO | number | 0 |
initialEnteringDelay | Initial enter animation delay | NO | number | 1 |
initialExistingDelay | Initial exit animation delay | NO | number | -1 |
onEnterFinished | callback to announce when the last item animation has finished (direction dependent) | NO | () => void | undefined |
onExitFinished | callback to announce when the last item animation has finished (direction dependent) | NO | () => void | undefined |
enter | Reanimated Enter animation | NO | () => ComplexAnimationBuilder | FadeInDown |
exiting | Reanimated Exit animation | NO | () => ComplexAnimationBuilder | FadeOutDown |
style | View style to be applied to Marquee container. | NO | StyleProp<ViewStyle> |
See the contributing guide to learn how to contribute to the repository and the development workflow.
FAQs
A React Native stagger component
The npm package @animatereactnative/stagger receives a total of 807 weekly downloads. As such, @animatereactnative/stagger popularity was classified as not popular.
We found that @animatereactnative/stagger demonstrated a healthy version release cadence and project activity because the last version was released less than 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.