# react-native-super-image

> Image with SuperPowers

Latest version **1.0.8** (published 2019-01-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-super-image
pnpm add react-native-super-image
yarn add react-native-super-image
bun add react-native-super-image
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.8 |
| Published | 2019-01-10 |
| First published | 2019-01-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 11.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Wijnand Karsens |
| Maintainers | wwoessi |

## Links

- npm: https://www.npmjs.com/package/react-native-super-image
- Repository: https://github.com/EAT-CODE-KITE-REPEAT/react-native-super-image
- npm.io page: https://npm.io/package/react-native-super-image

## Dependencies (3)

- [redux](https://npm.io/package/redux.md) ^4.0.1
- [react-redux](https://npm.io/package/react-redux.md) ^6.0.0
- [redux-persist](https://npm.io/package/redux-persist.md) ^5.10.0

## Recent versions

- 1.0.8 (latest) — 2019-01-10
- 1.0.7 — 2019-01-10
- 1.0.6 — 2019-01-10
- 1.0.5 — 2019-01-10
- 1.0.4 — 2019-01-10
- 1.0.3 — 2019-01-10
- 1.0.2 — 2019-01-10
- 1.0.1 — 2019-01-10
- 1.0.0 — 2019-01-10

## README

# React Native Super Image
React Native Super Image: Image component with Super Powers!

* Animation loading
* Downloading and caching image in the background
* Showing default background color before loading
* Option to resize to 100% height or width, keeping image ratio

## Install
`yarn add react-native-super-image`

## Usage
```js
import RNSuperImage from "react-native-super-image";
import expo from "expo";
const SuperImage = props => RNSuperImage({ ...props, expo });
```

## Props

* expo (required): The expo class
* animated (optional): boolean. if set to true, the image fades in for 100ms once it's loaded
* source (required): see [react native image](https://facebook.github.io/react-native/docs/image)
* style (optional): see [react native image](https://facebook.github.io/react-native/docs/image)
* width (optional): number or "auto". overwrites style-width. If set to auto, it calculates the width based on height and image ratio
* heigh (optional)t: number or "auto". overwrites style-height. If set to auto, it calculates the height based on width and image ratio

## Contribute
Contact me or submit an issue if you have ideas or want to collaborate / contribute

---
_Source: https://npm.io/package/react-native-super-image · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
