1.0.3 • Published 8 years ago
simple-progressive-image v1.0.3
React Native Simple Progressive Image
A simple Progressive Image Loader for React Native
Why ?
Other packages use absolute positioning which can lead to malfunctions
Install
npm install --save simple-progressive-imageExample
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"}
/>Properties
| 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 |