Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

auto-sizing-webview

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

auto-sizing-webview - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

16

AutoSizingWebView.js

@@ -8,6 +8,18 @@ // @flow

} from 'react-native';
import { mergedStyle } from '../utils/UiUtils';
// user is responsible for given us a proper width through layout or width
export default class AutoSizingWebView extends Component {
static mergedStyle(...args) {
if (args.length === 1) {
return args[0] || {};
}
return args.reduce(
(ret, item) => ((Array.isArray(item) ?
ret.concat(item)
: [...ret, item]
),
[]
);
}
state: {height: number}

@@ -31,3 +43,3 @@ _onNavigationStateChange: (event: Object) => void

_style() {
return mergedStyle(
return this.constructor.mergedStyle(
{

@@ -34,0 +46,0 @@ height: this.state.height,

2

package.json
{
"name": "auto-sizing-webview",
"version": "1.0.0",
"version": "1.0.1",
"description": "use scrollHeight to find content height for WebView, and do proper layout, inspired by code from here: https://gist.github.com/dbasedow/ed6e099823cb8d5ab30e",

@@ -5,0 +5,0 @@ "main": "index.js",

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