|
@@ -16,7 +16,7 @@
|
16
|
16
|
#import <React/RCTView.h>
|
17
|
17
|
#import <React/UIView+React.h>
|
18
|
18
|
|
19
|
|
-NSString *const RCTJSNavigationScheme = @"react-js-navigation";
|
|
19
|
+NSString *const RNCJSNavigationScheme = @"react-js-navigation";
|
20
|
20
|
|
21
|
21
|
static NSString *const kPostMessageHost = @"postMessage";
|
22
|
22
|
|
|
@@ -201,7 +201,7 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithCoder:(NSCoder *)aDecoder)
|
201
|
201
|
- (BOOL)webView:(__unused UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request
|
202
|
202
|
navigationType:(UIWebViewNavigationType)navigationType
|
203
|
203
|
{
|
204
|
|
- BOOL isJSNavigation = [request.URL.scheme isEqualToString:RCTJSNavigationScheme];
|
|
204
|
+ BOOL isJSNavigation = [request.URL.scheme isEqualToString:RNCJSNavigationScheme];
|
205
|
205
|
|
206
|
206
|
static NSDictionary<NSNumber *, NSString *> *navigationTypes;
|
207
|
207
|
static dispatch_once_t onceToken;
|
|
@@ -329,7 +329,7 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithCoder:(NSCoder *)aDecoder)
|
329
|
329
|
"messagePending = false;"
|
330
|
330
|
"processQueue();"
|
331
|
331
|
"});"
|
332
|
|
- "})();", RCTJSNavigationScheme, kPostMessageHost
|
|
332
|
+ "})();", RNCJSNavigationScheme, kPostMessageHost
|
333
|
333
|
];
|
334
|
334
|
[webView stringByEvaluatingJavaScriptFromString:source];
|
335
|
335
|
}
|