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]; } }