react-native-webview-bootpay 13.13.431 → 13.13.432
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.
|
@@ -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
|
|
8
|
-
export default
|
|
7
|
+
declare const BPCWebViewModule: Spec;
|
|
8
|
+
export default BPCWebViewModule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _reactNative=require("react-native");var
|
|
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;
|
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.
|
|
13
|
+
"version": "13.13.432",
|
|
14
14
|
"homepage": "https://github.com/react-native-webview/react-native-webview#readme",
|
|
15
15
|
"scripts": {
|
|
16
16
|
"android": "react-native run-android",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { TurboModule } from 'react-native';
|
|
2
|
-
import { TurboModuleRegistry } from 'react-native';
|
|
2
|
+
import { TurboModuleRegistry, NativeModules, Platform } from 'react-native';
|
|
3
3
|
import { Double } from 'react-native/Libraries/Types/CodegenTypes';
|
|
4
4
|
|
|
5
5
|
export interface Spec extends TurboModule {
|
|
@@ -10,4 +10,23 @@ export interface Spec extends TurboModule {
|
|
|
10
10
|
): void;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
|
|
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;
|