Showing content from https://github.com/user-attachments/files/16318364/react-native+0.73.6.dev.patch below:
diff --git a/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js b/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js index 07481e5..8c783b3 100644 --- a/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js +++ b/node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js @@ -167,21 +167,15 @@ class MessageQueue { callNativeSyncHook( moduleID: number, methodID: number, - params: mixed[], - onFail: ?(...mixed[]) => void, - onSucc: ?(...mixed[]) => void, - ): mixed { - if (__DEV__) { - invariant( - global.nativeCallSyncHook, - 'Calling synchronous methods on native ' + - 'modules is not supported in Chrome.\n\n Consider providing alternative ' + - 'methods to expose this method in debug mode, e.g. by exposing constants ' + - 'ahead-of-time.', - ); - } + params: any[], + onFail: ?Function, + onSucc: ?Function, + ): any { this.processCallbacks(moduleID, methodID, params, onFail, onSucc); - return global.nativeCallSyncHook(moduleID, methodID, params); + if(global.nativeCallSyncHook) + { + return global.nativeCallSyncHook(moduleID, methodID, params); + } } processCallbacks(
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4