File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed
Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -444,11 +444,11 @@ class Web3Webview extends React.Component {
444444 injectedJavaScriptForMainFrameOnly = {
445445 this . props . injectedJavaScriptForMainFrameOnly
446446 }
447- injectJavaScript = { this . props . injectJavaScript }
448- injectedJavaScript = {
449- this . props . injectedJavaScript ||
447+ injectJavaScript = {
448+ this . props . injectJavaScript ||
450449 this . props . injectedOnStartLoadingJavaScript
451450 }
451+ injectedJavaScript = { this . props . injectedJavaScript }
452452 bounces = { this . props . bounces }
453453 scrollEnabled = { this . props . scrollEnabled }
454454 contentInset = { this . props . contentInset }
Original file line number Diff line number Diff line change @@ -307,7 +307,13 @@ - (BOOL)canGoForward
307307
308308- (void )reload
309309{
310- [_webView reload ];
310+ NSURLRequest *request = [RCTConvert NSURLRequest: self .source];
311+ if (request.URL && !_webView.URL .absoluteString .length ) {
312+ [self loadRequest: request];
313+ }
314+ else {
315+ [_webView reload ];
316+ }
311317}
312318
313319- (void )stopLoading
Original file line number Diff line number Diff line change 11{
22 "name" : " react-native-web3-webview" ,
3- "version" : " 1.2.1 " ,
3+ "version" : " 1.2.2 " ,
44 "description" : " A react native webview optimized for a web3 dApp browser application" ,
55 "main" : " index.js" ,
66 "scripts" : {
You can’t perform that action at this time.
0 commit comments