File tree Expand file tree Collapse file tree 3 files changed +3
-15
lines changed Expand file tree Collapse file tree 3 files changed +3
-15
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ var Sample2 = React.createClass({
52
52
injectedJavaScript = { injectScript }
53
53
source = { { uri : "https://google.com" } } />
54
54
< WebViewBridge
55
- ref = "webviewbridge "
55
+ ref = "webviewbridge2 "
56
56
onBridgeMessage = { this . onBridgeMessage }
57
57
javaScriptEnabled = { true }
58
58
injectedJavaScript = { injectScript }
Original file line number Diff line number Diff line change @@ -113,13 +113,7 @@ var WebViewBridge = React.createClass({
113
113
}
114
114
115
115
let props = { ...this . props } ;
116
- var source = props . source || { } ;
117
- if ( this . props . html ) {
118
- source . html = this . props . html ;
119
- } else if ( this . props . url ) {
120
- source . uri = this . props . url ;
121
- }
122
- props . source = resolveAssetSource ( source ) ;
116
+ props . source = resolveAssetSource ( props . source ) ;
123
117
124
118
var webView =
125
119
< RCTWebViewBridge
Original file line number Diff line number Diff line change @@ -179,13 +179,7 @@ var WebViewBridge = React.createClass({
179
179
delete props . onBridgeMessage ;
180
180
delete props . onShouldStartLoadWithRequest ;
181
181
182
- var source = props . source || { } ;
183
- if ( this . props . html ) {
184
- source . html = this . props . html ;
185
- } else if ( this . props . url ) {
186
- source . uri = this . props . url ;
187
- }
188
- props . source = resolveAssetSource ( source ) ;
182
+ props . source = resolveAssetSource ( props . source ) ;
189
183
190
184
191
185
var webView =
You can’t perform that action at this time.
0 commit comments