Skip to content

Commit c34ed78

Browse files
authored
add: support overriding/adding custom styles (#22)
1 parent f877fd0 commit c34ed78

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 default class 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],
127+
style: [styles.iframe, scrollEnabled && styles.noScroll, this.props.style],
128128
allowFullScreen: true,
129129
allowpaymentrequest: 'true',
130130
frameBorder: '0',

0 commit comments

Comments
 (0)