Skip to content

VgroupInc/react-native-ImageDownLoader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

REACT NATIVE ImageDownloader

React Native ImageDownloader is a component to Support Animation process view for networked images.

Installation

$ npm install react-native-imagedownloader --save

Features

  • download the Networked image
  • show process view or default Image while Downloading the images

Usage

Available props:

  • imageURL — Required property. set the networked URL to download the image from the remote.
  • imageStyle — Required property. set the image view style to add the image view in the parent view.
  • defaultImage — set the default image while the image downloading is progress.
  • renderProcess — set Yes if you want to render the process view while downloading the image. Default is No.
  • renderDefaultImage — set Yes it you want to render the default image while image is downloading. defaultImage should be set if use this property. Default is No.
  • renderFailedImage — set Yes it you want to render the default image when image downlaods failed . defaultImage should be set if use this property.Default is No.

alt tag

var React = require('react-native');
var ImageDownLoader = require('./ImageDownLoader');

var styles = StyleSheet.create({

thumbnail: {
    width: any, 
    height: any
  }
  });
  
React.createClass({
  render: function () {
      <ImageDownLoader
                    renderProcess = {false}
                    defaultImage = {require('image!imageIcon')}
                    imageStyle = {styles.thumbnail}
                    imageURL = {imageURL}
                    renderDefaultImage = {true}
                    renderFailedImage = {false}
                    />
  }
});

Authors

About

React Native Component to Support Animation process view for networked images

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published