Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

custom-image-loader-react

iampavan1ISC1.0.1

null

react, react-loader, loaders, react-spinners, custom-image-loader, react-custom-image-loader, spinners, react-spinners, react-loaders

readme

React Custom Image Loader:

This package provides a simple react component, which enables the user to have a custom image loader.

Demo

Demo Page

Installation

npm install custom-image-loader

Usage

<CustomImageLoader
    image={'https://image.flaticon.com/icons/png/512/1499/1499840.png'}
    isLoaded={true}
    circle={false}
    speed={2}
    animationType={'evaporate'}
/>

Options

image (*): Should specify the URL or the path from the local system.

animationType (*): Should specify the animation type.

isLoaded: It takes a Boolean, by default it is true. By this we can toggle the loader.

circle: It takes a Boolean, by default it is false. true specifies the loader in a circle.

speed: It takes an Integer, by default it is 2.