Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mateioprea/react-native-simple-progressive-image

A simple Progressive Image Loader for React Native
https://github.com/mateioprea/react-native-simple-progressive-image

Last synced: about 1 month ago
JSON representation

A simple Progressive Image Loader for React Native

Awesome Lists containing this project

README

        

# React Native Simple Progressive Image

A simple Progressive Image Loader for React Native

[![Total Downloads](https://img.shields.io/npm/dt/simple-progressive-image.svg?style=flat-square)](https://www.npmjs.com/package/simple-progressive-image) [![License](https://img.shields.io/npm/l/simple-progressive-image.svg?style=flat-square)](LICENSE)

[](https://i.imgur.com/DvwQx7p.gif)

## 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';

```

## 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` |