react-native-webview-bootpay 13.13.43-3.alpha.1 → 13.13.43

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.
@@ -18,12 +18,12 @@
18
18
  #import "objc/runtime.h"
19
19
 
20
20
  static NSTimer *keyboardTimer;
21
- static NSString *const HistoryShimName = @"BPCReactNativeHistoryShim";
22
- static NSString *const MessageHandlerName = @"BPCReactNativeWebView";
21
+ static NSString *const HistoryShimName = @"ReactNativeHistoryShim";
22
+ static NSString *const MessageHandlerName = @"ReactNativeWebView";
23
23
  static NSURLCredential* clientAuthenticationCredential;
24
24
  static NSDictionary* customCertificatesForHost;
25
25
 
26
- NSString *const CUSTOM_SELECTOR = @"_BPCCUSTOM_SELECTOR_";
26
+ NSString *const CUSTOM_SELECTOR = @"_CUSTOM_SELECTOR_";
27
27
 
28
28
  #if TARGET_OS_IOS
29
29
  // runtime trick to remove WKWebView keyboard default toolbar
@@ -4,5 +4,5 @@ export interface Spec extends TurboModule {
4
4
  isFileUploadSupported(): Promise<boolean>;
5
5
  shouldStartLoadWithLockIdentifier(shouldStart: boolean, lockIdentifier: Double): void;
6
6
  }
7
- declare const BPCWebViewModule: Spec;
8
- export default BPCWebViewModule;
7
+ declare const _default: Spec;
8
+ export default _default;
@@ -1 +1 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _asyncToGenerator2=_interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));var _reactNative=require("react-native");var nativeModule=null;try{if(_reactNative.TurboModuleRegistry.getEnforcing){nativeModule=_reactNative.TurboModuleRegistry.getEnforcing('BPCWebViewModule');}else if(_reactNative.NativeModules.BPCWebViewModule){nativeModule=_reactNative.NativeModules.BPCWebViewModule;}}catch(error){console.warn('BPCWebViewModule를 찾을 수 없습니다. 더미 구현을 사용합니다.');}var BPCWebViewModule=nativeModule||{isFileUploadSupported:function(){var _isFileUploadSupported=(0,_asyncToGenerator2.default)(function*(){return _reactNative.Platform.OS!=='web';});function isFileUploadSupported(){return _isFileUploadSupported.apply(this,arguments);}return isFileUploadSupported;}(),shouldStartLoadWithLockIdentifier:function shouldStartLoadWithLockIdentifier(){}};var _default=exports.default=BPCWebViewModule;
1
+ Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _reactNative=require("react-native");var _default=exports.default=_reactNative.TurboModuleRegistry.getEnforcing('BPCWebViewModule');
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "Thibault Malbranche <malbranche.thibault@gmail.com>"
11
11
  ],
12
12
  "license": "MIT",
13
- "version": "13.13.433.alpha.1",
13
+ "version": "13.13.43",
14
14
  "homepage": "https://github.com/react-native-webview/react-native-webview#readme",
15
15
  "scripts": {
16
16
  "android": "react-native run-android",
@@ -54,7 +54,6 @@
54
54
  "@types/invariant": "^2.2.30",
55
55
  "@types/jest": "^29.5.12",
56
56
  "@types/react": "18.2.61",
57
- "@types/react-native": "^0.73.0",
58
57
  "@types/selenium-webdriver": "4.0.9",
59
58
  "appium": "1.17.0",
60
59
  "eslint": "8.57.0",
@@ -1,5 +1,5 @@
1
1
  import type { TurboModule } from 'react-native';
2
- import { TurboModuleRegistry, NativeModules, Platform } from 'react-native';
2
+ import { TurboModuleRegistry } from 'react-native';
3
3
  import { Double } from 'react-native/Libraries/Types/CodegenTypes';
4
4
 
5
5
  export interface Spec extends TurboModule {
@@ -10,23 +10,4 @@ export interface Spec extends TurboModule {
10
10
  ): void;
11
11
  }
12
12
 
13
- // 안전한 모듈 참조 구현
14
- let nativeModule: Spec | null = null;
15
-
16
- try {
17
- if (TurboModuleRegistry.getEnforcing) {
18
- nativeModule = TurboModuleRegistry.getEnforcing<Spec>('BPCWebViewModule');
19
- } else if (NativeModules.BPCWebViewModule) {
20
- nativeModule = NativeModules.BPCWebViewModule as Spec;
21
- }
22
- } catch (error) {
23
- console.warn('BPCWebViewModule를 찾을 수 없습니다. 더미 구현을 사용합니다.');
24
- }
25
-
26
- // 모듈이 없는 경우 더미 구현 제공
27
- const BPCWebViewModule: Spec = nativeModule || {
28
- isFileUploadSupported: async () => Platform.OS !== 'web',
29
- shouldStartLoadWithLockIdentifier: () => {},
30
- };
31
-
32
- export default BPCWebViewModule;
13
+ export default TurboModuleRegistry.getEnforcing<Spec>('BPCWebViewModule');