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';
3
3
import { StyleSheet , View , ActivityIndicator } from 'react-native' ;
4
4
5
5
export default class extends Component {
6
+ static defaultProps = {
7
+ scrollEnabled : true ,
8
+ } ;
9
+
6
10
state = { html : null } ;
7
11
8
12
constructor ( props ) {
@@ -99,7 +103,12 @@ export default class extends Component {
99
103
title = { title }
100
104
src = { ! source . method ? source . uri : undefined }
101
105
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
+ } }
103
112
allowFullScreen
104
113
allowpaymentrequest = "true"
105
114
frameBorder = "0"
You can’t perform that action at this time.
0 commit comments