
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
React native progressive image component.
$ npm i pro-image
or
$ yarn add pro-image
Simple example:
import ProImage from 'pro-image';
const MyImageComponent = () =>
<ProImage
thumbnail={{ uri: 'lorem.ipsum/thumbnail.png' }}
image={{ uri: 'lorem.ipsum/big-image.png' }}
/>
Property | Is optional? | Default | Description |
---|---|---|---|
image | no | - | Image to render. |
thumbnail | yes | null | The image to render with the same aspect ratio and the smallest resollution possible. |
placeholder | yes | null | Placeholder image to render while the image is loading. (Note: placeholder will not show if there's a thumbnail) |
resizeMode | yes | cover | Image resize mode. |
style | yes | {} | Styles for the image. |
containerStyle | yes | {} | Styles for the image container (View). |
duration | yes | 1000 (ms) | Time in milliseconds that the fade effects lasts. |
Full example:
import ProImage from 'pro-image';
import placeholder from './path/to/placeholder.png';
const MyImageComponent = () =>
<ProImage
placeholder={placeholder}
thumbnail={{ uri: 'lorem.ipsum/thumbnail.png' }}
image={{ uri: 'lorem.ipsum/big-image.png' }}
containerStyle={{ margin: 4 }}
style={{ height: 100, width: 200 }}
resizeMode="contain"
/>
Set global values to all the images in your app.
Property | Defalut | Description |
---|---|---|
duration | 1000 (ms) | Time in milliseconds that the fade effects lasts. |
placeholder | null | Placeholder image. |
blur | 1 | Blur radius for the thumbnail. |
Customize all options:
import ProImage from 'pro-image';
import placeholder from './path/to/placeholder.png';
ProImage.setDefaultConfig({
duration: 500,
placeholder,
blur: 2
});
Changing just one value:
import ProImage from 'pro-image';
ProImage.setDefaultConfig({ duration: 750 });
FAQs
React native image component with blurred progressive loading
We found that pro-image 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.