npm

simple-progressive-image

1.0.3 • Public • Published

React Native Simple Progressive Image

A simple Progressive Image Loader for React Native

Total Downloads License

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

Package Sidebar

Install

npm i simple-progressive-image

Weekly Downloads

0

Version

1.0.3

License

MIT

Last publish

Collaborators

  • mateioprea