File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -111,15 +111,14 @@ var WebViewBridge = React.createClass({
111
111
domStorageEnabled = this . props . domStorageEnabledAndroid ;
112
112
}
113
113
114
- let props = { ...this . props } ;
115
- props . source = resolveAssetSource ( props . source ) ;
116
-
114
+ let { source, ...props } = { ...this . props } ;
115
+
117
116
var webView =
118
117
< RCTWebViewBridge
119
118
ref = { RCT_WEBVIEWBRIDGE_REF }
120
119
key = "webViewKey"
121
120
{ ...props }
122
- source = { source }
121
+ source = { resolveAssetSource ( source ) }
123
122
style = { webViewStyles }
124
123
onLoadingStart = { this . onLoadingStart }
125
124
onLoadingFinish = { this . onLoadingFinish }
Original file line number Diff line number Diff line change @@ -175,19 +175,16 @@ var WebViewBridge = React.createClass({
175
175
}
176
176
} ;
177
177
178
- let props = { ...this . props } ;
178
+ let { source , ... props } = { ...this . props } ;
179
179
delete props . onBridgeMessage ;
180
180
delete props . onShouldStartLoadWithRequest ;
181
- delete props . source ;
182
-
183
- props . source = resolveAssetSource ( props . source ) ;
184
181
185
182
var webView =
186
183
< RCTWebViewBridge
187
184
ref = { RCT_WEBVIEWBRIDGE_REF }
188
185
key = "webViewKey"
189
186
{ ...props }
190
- source = { source }
187
+ source = { resolveAssetSource ( source ) }
191
188
style = { webViewStyles }
192
189
onLoadingStart = { this . onLoadingStart }
193
190
onLoadingFinish = { this . onLoadingFinish }
You can’t perform that action at this time.
0 commit comments