# react-native-network-image

> React Native component to display image from network and resize.

Latest version **0.0.2** (published 2016-10-22) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2016-10-22 |
| First published | 2016-10-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Vivek Khurana |
| Maintainers | vivekkhurana |
| Keywords | Multistep, Wizard, android, ios |

## Links

- npm: https://www.npmjs.com/package/react-native-network-image
- Repository: https://github.com/vivekkhurana/react-native-network-image
- Homepage: https://github.com/vivekkhurana/react-native-network-image#readme
- Issues: https://github.com/vivekkhurana/react-native-network-image/issues
- npm.io page: https://npm.io/package/react-native-network-image

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.0.2 (latest) — 2016-10-22
- 0.0.1 — 2016-10-22

## README

# React Native Network Image

In your componenet import NetworkedImage 

```
import NetworkedImage from 'react-native-network-image'

```

Define a function to calculate the height and width of resized image

```
calcImage(downlodImageWidth,downloadImageHeight){
      
      //Perform your calculations
        
	// Return the final dimensions of image to be displayed
        return {width:newwidth,height:newheight}
  }

```

Call NetworkedImage componenet in your render method

```
render(){
	return (
		<View>
		//pass the image dimension calculation function in the callback prop
		<NetworkedImage source={{uri:imageURI}} 
                             resizeMode={Image.resizeMode.contain} 
                            callback={this.calcImage} />
		</View>
	)
}	
```

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