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.
react-native-crossfade-image
Advanced tools
React Native component to update image source with crossfade transition effect
React Native component for changing images with crossfade transition effect when a new source prop received. Works as a replacement for React Native's Image component, both local files and remote URLs supported.
Using yarn:
yarn add react-native-crossfade-image
Using npm:
npm install react-native-crossfade-image
Note that you have to specify image dimensions using style prop.
import { CrossfadeImage } from 'react-native-crossfade-image';
const YourComponent = ({ imageSource }) => (
<View>
<CrossfadeImage style={{ width: 100, height: 100 }} source={imageSource} />
</View>
);
Prop Name | Required | Default | Description |
---|---|---|---|
source | yes | The image source (either a remote URL or a local file resource) | |
duration | no | 500 | Duration of the fade transition in ms |
easing | no | Easing.ease | Easing function, see available options |
style | no | Style object applied to the wrapping View | |
resizeMode | no | 'cover' | Image resize mode, see available options |
blurRadius | no | The blur radius of the blur filter applied to the image |
MIT
FAQs
React Native component to update image source with crossfade transition effect
The npm package react-native-crossfade-image receives a total of 33 weekly downloads. As such, react-native-crossfade-image popularity was classified as not popular.
We found that react-native-crossfade-image demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.