Bläddra i källkod

修复透明背景色无效

zhangchao 4 år sedan
förälder
incheckning
0ee992ed00
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1
    1
      autoHeightWebView/index.js

+ 1
- 1
autoHeightWebView/index.js Visa fil

@@ -70,7 +70,7 @@ const AutoHeightWebView = React.memo(
70 70
       <View style={[props.style, { height: height || 50, transform: [{ translateX: -1 }] }]}>
71 71
         <WebView
72 72
           {...props}
73
-          style={{ transform: [{ translateX: 1 }] }}
73
+          style={{ transform: [{ translateX: 1 }], backgroundColor: '#0000' }}
74 74
           ref={webView}
75 75
           onMessage={handleMessage}
76 76
           injectedJavaScript={script}