Skip to content

Commit

Permalink
fix(app): react-native 0.74 bridgeless mode compatibility (#7688)
Browse files Browse the repository at this point in the history
* fix(app): rn74 new arch bridgeless mode compatibility

courtesy of @birdofpreyru with big assist from @gabrieldonadel

---------

Co-authored-by: Mike Hardy <[email protected]>
  • Loading branch information
gabrieldonadel and mikehardy authored May 20, 2024
1 parent a2e3206 commit a6805bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/app/lib/internal/registry/nativeModule.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ function nativeModuleWrapped(namespace, NativeModule, argToPrepend) {
return NativeModule;
}

const properties = Object.keys(NativeModule);
let properties = Object.keys(Object.getPrototypeOf(NativeModule));
if (!properties.length) properties = Object.keys(NativeModule);

for (let i = 0, len = properties.length; i < len; i++) {
const property = properties[i];
Expand Down

0 comments on commit a6805bc

Please sign in to comment.