
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-native-universal-image
Advanced tools
A responsive image component with progressive loading for react native
An auto sizing image component with progressive loading for react native.

Image component that resizes itself to contain the image. Progressively loads image with blur effect and spinner overlay.
Note: For auto resize, please make sure your thumbnails are the same aspect ratio as the original image.
Since the library is a JS-based solution, to install the latest version of react-native-universal-image you only need to run:
yarn add react-native-universal-image
or
npm install --save react-native-universal-image
import UniversalImage from 'react-native-universal-image';
<UniversalImage
indicator
indicatorColor="#1AD2EF"
indicatorSize="large"
defaultHeight={350}
imageFadeDuration={3000}
thumbnailFadeDuration={1000}
thumbnailBlurRadius={1}
imageSource={{ uri: IMAGE_URL }}
thumbnailSource={{ uri: THUMBNAIL_URL }} />
| Prop | Description | Default | Required |
|---|---|---|---|
indicator | Spinner overlay on image | false | |
indicatorColor | Color of spinner component | None | |
indicatorSize | Size of spinner component ('small', 'large') | None | |
defaultHeight | Default height of the component while the thumbnail is being loaded | 350 | |
thumbnailSource | Provide a low resolution version of the image used in imageSource. | None | Required |
imageSource | Original image uri | None | Required |
thumbnailBlurRadius | Blur radius for the low resolution thumbnail. | None | |
imageFadeDuration | Fade-in duration for the image in ms. | None | |
thumbnailFadeDuration | Fade-in duration for the thumbnail in ms. | None | |
onLoadThumbnail | Callback function that gets called when the thumbnail is loaded. | noop | |
onLoadImage | Callback function that gets called when the main image is loaded. | noop |
Interested in contributing to this repo? Feel free to raise a pull request or report an issue at react-native-universal-image.
FAQs
A responsive image component with progressive loading for react native
We found that react-native-universal-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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.