simple-progressive-image
v1.0.3
Published
Simple Progressive Image library for React Native
Downloads
2
Maintainers
Readme
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-image
Example
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
|