react-native-webview-bootpay 11.22.86 → 11.22.87
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/apple/BPCWebView.m +4 -4
- package/package.json +1 -1
package/apple/BPCWebView.m
CHANGED
|
@@ -25,7 +25,7 @@ static NSString *const MessageHandlerName = @"BootpayRNWebView";
|
|
|
25
25
|
static NSURLCredential* clientAuthenticationCredential;
|
|
26
26
|
static NSDictionary* customCertificatesForHost;
|
|
27
27
|
|
|
28
|
-
NSString *const
|
|
28
|
+
NSString *const BPCUSTOM_SELECTOR = @"_BPCUSTOM_SELECTOR_";
|
|
29
29
|
|
|
30
30
|
#if !TARGET_OS_OSX
|
|
31
31
|
// runtime trick to remove WKWebView keyboard default toolbar
|
|
@@ -219,7 +219,7 @@ RCTAutoInsetsProtocol>
|
|
|
219
219
|
for(NSDictionary *menuItem in self.menuItems) {
|
|
220
220
|
NSString *menuItemLabel = [RCTConvert NSString:menuItem[@"label"]];
|
|
221
221
|
NSString *menuItemKey = [RCTConvert NSString:menuItem[@"key"]];
|
|
222
|
-
NSString *sel = [NSString stringWithFormat:@"%@%@",
|
|
222
|
+
NSString *sel = [NSString stringWithFormat:@"%@%@", BPCUSTOM_SELECTOR, menuItemKey];
|
|
223
223
|
UIMenuItem *item = [[UIMenuItem alloc] initWithTitle: menuItemLabel
|
|
224
224
|
action: NSSelectorFromString(sel)];
|
|
225
225
|
|
|
@@ -279,7 +279,7 @@ RCTAutoInsetsProtocol>
|
|
|
279
279
|
- (void)forwardInvocation:(NSInvocation *)invocation
|
|
280
280
|
{
|
|
281
281
|
NSString *sel = NSStringFromSelector([invocation selector]);
|
|
282
|
-
NSRange match = [sel rangeOfString:
|
|
282
|
+
NSRange match = [sel rangeOfString:BPCUSTOM_SELECTOR];
|
|
283
283
|
if (match.location == 0) {
|
|
284
284
|
[self tappedMenuItem:[sel substringFromIndex:17]];
|
|
285
285
|
} else {
|
|
@@ -298,7 +298,7 @@ RCTAutoInsetsProtocol>
|
|
|
298
298
|
{
|
|
299
299
|
NSString *sel = NSStringFromSelector(action);
|
|
300
300
|
// Do any of them have our custom keys?
|
|
301
|
-
NSRange match = [sel rangeOfString:
|
|
301
|
+
NSRange match = [sel rangeOfString:BPCUSTOM_SELECTOR];
|
|
302
302
|
|
|
303
303
|
if (match.location == 0) {
|
|
304
304
|
return YES;
|
package/package.json
CHANGED