Skip to content

Commit bf372bc

Browse files
Use StyleSheet.flatten() to fix Uncaught TypeError: Failed to set an indexed property on 'CSSStyleDeclaration': Index property setter is not supported. (#21)
Co-authored-by: Louis Lagrange <lagrange.louis@gmail.com>
1 parent b7f9aa7 commit bf372bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export class WebView extends Component {
124124
srcDoc: this.handleInjectedJavaScript(this.state.html || source.html),
125125
width: styleObj && styleObj.width,
126126
height: styleObj && styleObj.height,
127-
style: [styles.iframe, scrollEnabled && styles.noScroll, this.props.style],
127+
style: StyleSheet.flatten([styles.iframe, scrollEnabled && styles.noScroll, this.props.style]),
128128
allowFullScreen: true,
129129
allowpaymentrequest: 'true',
130130
frameBorder: '0',

0 commit comments

Comments
 (0)