mateioprea / react-native-simple-progressive-image

A simple Progressive Image Loader for React Native

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A simple Progressive Image Loader for React Native

License:MIT License


Languages

Language:JavaScript 100.0%