Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@unpourtous/react-native-image-indicator

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@unpourtous/react-native-image-indicator

react native component for image with indicator and default image

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-16.67%
Maintainers
1
Weekly downloads
 
Created
Source

A component for image with indicator and default image

JavaScript Style Guide

React Native Indicator Image

A component for image with indicator and default image

Installation

$ npm install @unpourtous/react-native-image-indicator --save

Usage

import CustomImage from '@unpourtous/react-native-image-indicator'

  <CustomImage
          style={{alignItems: 'center', justifyContent: 'center', height:300,width:300, backgroundColor: '#fdf9e6'}}
          source={'image url'}
          defaultImage={require('./images/default.jpg')}
          errorImage={require('./images/error.png')}
        />

API

Props

source

The remote URL image source.

type: string

defaultImage

The image before remote image loaded

type: number

errorImage

The image when remote image loade failed

type: number

renderIndicator

the function that render indicator component(exclusion indicator when renderIndicator setted)

type: function

indicator

the indicator component when image is loading

type: function

indicatorProps

the props of indicator component

type: object

threshold

delay milliseconds before indicator component show

type: number defaultValue: 50

License

This library is distributed under MIT Licence.
FOSSA Status

Keywords

FAQs

Package last updated on 23 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc