Browse Source

修复自动高度无效

zhangchao 5 years ago
parent
commit
561ef0f2fd
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      autoHeightWebView/index.js

+ 1
- 1
autoHeightWebView/index.js View File

67
       [width, height, onSizeUpdated]
67
       [width, height, onSizeUpdated]
68
     );
68
     );
69
     return (
69
     return (
70
-      <View style={[props.style, { height: height || 50 }]}>
70
+      <View style={[props.style, { height: height || 20 }]}>
71
         <WebView
71
         <WebView
72
           {...props}
72
           {...props}
73
           style={{}}
73
           style={{}}