From 0a5dfe0f9a8722f7c809240a0c1d5d3b65d6a4bc Mon Sep 17 00:00:00 2001 From: Gabriel Donadel Date: Mon, 18 Mar 2024 21:44:22 -0300 Subject: [PATCH] fix(app): react-native 0.74 bridgeless mode compatibility --- packages/app/lib/internal/registry/nativeModule.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/app/lib/internal/registry/nativeModule.js b/packages/app/lib/internal/registry/nativeModule.js index 03f001ca08..d31785cd72 100644 --- a/packages/app/lib/internal/registry/nativeModule.js +++ b/packages/app/lib/internal/registry/nativeModule.js @@ -60,7 +60,7 @@ function nativeModuleMethodWrapped(namespace, method, argToPrepend) { * @param argToPrepend */ function nativeModuleWrapped(namespace, NativeModule, argToPrepend) { - const native = {}; + const native = NativeModule; if (!NativeModule) { return NativeModule; } @@ -71,8 +71,6 @@ function nativeModuleWrapped(namespace, NativeModule, argToPrepend) { const property = properties[i]; if (typeof NativeModule[property] === 'function') { native[property] = nativeModuleMethodWrapped(namespace, NativeModule[property], argToPrepend); - } else { - native[property] = NativeModule[property]; } }