File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,10 @@ import React, { Component } from 'react';
33import { StyleSheet , View , ActivityIndicator } from 'react-native' ;
44
55export default class extends Component {
6+ static defaultProps = {
7+ scrollEnabled : true ,
8+ } ;
9+
610 state = { html : null } ;
711
812 constructor ( props ) {
@@ -99,7 +103,12 @@ export default class extends Component {
99103 title = { title }
100104 src = { ! source . method ? source . uri : undefined }
101105 srcDoc = { this . state . html || source . html }
102- style = { [ styles . iframe , ! scrollEnabled && styles . noScroll ] }
106+ style = { {
107+ width : '100%' ,
108+ height : '100%' ,
109+ border : 0 ,
110+ overflow : ! scrollEnabled ? 'hidden' : undefined ,
111+ } }
103112 allowFullScreen
104113 allowpaymentrequest = "true"
105114 frameBorder = "0"
You can’t perform that action at this time.
0 commit comments