1.1.2 • Published 6 years ago

@unpourtous/react-native-image-indicator v1.1.2

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

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

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.10

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago