Explorar el Código

修复透明背景色无效

zhangchao hace 4 años
padre
commit
0ee992ed00
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      autoHeightWebView/index.js

+ 1
- 1
autoHeightWebView/index.js Ver fichero

@@ -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}