Skip to content

Commit

Permalink
fix(app): react-native 0.74 bridgeless mode compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieldonadel authored and mikehardy committed May 20, 2024
1 parent a2e3206 commit 0a5dfe0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/app/lib/internal/registry/nativeModule.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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];
}
}

Expand Down

0 comments on commit 0a5dfe0

Please sign in to comment.