simple-progressive-image
1.0.3 • Public • Published React Native Simple Progressive Image
A simple Progressive Image Loader for React Native
Other packages use absolute positioning which can lead to malfunctions
npm install --save simple-progressive-image
import ProgressiveImage from 'simple-progressive-image';
<ProgressiveImage
placeholderSource={{uri: "https://i.imgur.com/EMaLg1x.jpg"}}
imageSource={{uri: "https://i.imgur.com/580JwuJ.jpg"}}
resizeMode={"contain"}
/>
Prop |
Default |
Type |
Description |
Required |
resizeMode |
- |
String |
Inherited from component |
true |
placeholderImageStyle |
- |
Object |
Styling for the placeholder |
false |
placeholderSource |
- |
Object |
Placeholder image source |
true |
sourceImageStyle |
- |
Object |
Styling for the actual image |
false |
imageSource |
- |
Object |
Actual image source |
true |
Dependencies (1)
Dev Dependencies (0)
Package Sidebar
Install
npm i simple-progressive-image
Weekly Downloads