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
4
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.10
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

A Image Component with Indicator, Default Image and Error Default Image

JavaScript Style Guide

React Native Indicator Image

A image component with indicator and error 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

PropsTypeDescription
sourcestringThe remote URL image source.
useQueryParamsInCacheKeyboolConfig if cache key contains query in url, default value is true
defaultImagenumberThe image before remote image loaded
errorImagenumberThe image when remote image loade failed
renderIndicatorfunctionThe function that render indicator component(exclusion indicator when renderIndicator setted)
indicatorfunctionThe indicator component when image is loading
indicatorPropsobjectThe props of indicator component
thresholdnumberDelay before indicator component show in milliseconds, default value 50.

License

This library is distributed under MIT Licence.
FOSSA Status

Keywords

FAQs

Package last updated on 18 Sep 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