zhangchao 5 gadus atpakaļ
vecāks
revīzija
55d4fca3d2
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      autoHeightWebView/index.js

+ 1
- 1
autoHeightWebView/index.js Parādīt failu

73
           style={{ transform: [{ translateX: 1 }], backgroundColor: '#0000' }}
73
           style={{ transform: [{ translateX: 1 }], backgroundColor: '#0000' }}
74
           ref={webView}
74
           ref={webView}
75
           onMessage={handleMessage}
75
           onMessage={handleMessage}
76
-          injectedJavaScript={script}
76
+          injectedJavaScript={script + props.injectedJavaScript}
77
           source={currentSource}
77
           source={currentSource}
78
           scrollEnabled={currentScrollEnabled}
78
           scrollEnabled={currentScrollEnabled}
79
         />
79
         />