# react-native-autoreheight-webview

> An auto resize content height webview for React Native. Pure JavaScript,and easytouse.

Latest version **1.1.1** (published 2018-04-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-autoreheight-webview
pnpm add react-native-autoreheight-webview
yarn add react-native-autoreheight-webview
bun add react-native-autoreheight-webview
```

## 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.1.1 |
| Published | 2018-04-01 |
| First published | 2017-12-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 24 |
| Author | CrazyPeter |
| Maintainers | crazypeter |
| Keywords | react-native-component, react-component, react-native, ios, android, height, webview |

## Links

- npm: https://www.npmjs.com/package/react-native-autoreheight-webview
- Repository: https://github.com/CrazyPeter/react-native-autoreheight-webview
- Homepage: https://github.com/CrazyPeter/react-native-autoreheight-webview#readme
- Issues: https://github.com/CrazyPeter/react-native-autoreheight-webview/issues
- npm.io page: https://npm.io/package/react-native-autoreheight-webview

## 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

- 1.1.1 (latest) — 2018-04-01
- 1.1.0 — 2018-01-18
- 1.0.1 — 2018-01-03
- 1.0.0 — 2018-01-03
- 0.3.1 — 2018-01-03
- 0.3.0 — 2018-01-03
- 0.1.0 — 2017-12-26

## README

[![Version](http://img.shields.io/npm/v/react-native-autoreheight-webview.svg?style=flat-square)](https://npmjs.org/package/aframe-forcegraph-component)
[![License](http://img.shields.io/npm/l/react-native-autoreheight-webview.svg?style=flat-square)](https://npmjs.org/package/aframe-forcegraph-component)

# react-native-autoreheight-webview

An auto resize content height webview for React Native.  <br>
Pure JavaScript,and easy to use.  
(rn >= 0.44)
<br>


## install

>yarn add react-native-autoreheight-webview 

or
>npm install react-native-autoreheight-webview 

## Demo1
![showtime1](https://github.com/CrazyPeter/react-native-autoreheight-webview/blob/master/demo1.gif)

see more in [Example.js](https://github.com/CrazyPeter/react-native-autoreheight-webview/blob/master/Example.js)

## Demo2
![showtime1](https://github.com/CrazyPeter/react-native-autoreheight-webview/blob/master/demo2.gif)

see more in [Example2.js](https://github.com/CrazyPeter/react-native-autoreheight-webview/blob/master/Example2.js)

## Basic Usage

```javascript
<AutoResizeHeightWebView
                defaultHeight={200}
                style={{backgroundColor:'white'}}
                AnimationDuration={500} 
                source={{uri: 'http://www.ftchinese.com/story/001075607'}}/> 
```

## Props

| props name | default  | desciption |
| --- | --- | --- |
| defaultHeight | 100 | default Height |
| style | {} | webviewStyle |
| needAutoResetHeight | true | you can reset Height manually |
| AnimationDuration | 500 | animation duration |
| source | null | just like ReactNative's Webview |
| needAnimate | true | show animate or not when resetting height |

And all props in React Native's **WebView** Component

## Functions
| function name | desciption |
| --- | --- |
|resetHeight|reset height to show all manually|
|resetSmallHeight|reset Height to default height manually|



<br>
If it helps you,please give it a star!

### Feel free to add issues or feature requests

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