Skip to content

Commit a6805bc

Browse files
fix(app): react-native 0.74 bridgeless mode compatibility (#7688)
* fix(app): rn74 new arch bridgeless mode compatibility courtesy of @birdofpreyru with big assist from @gabrieldonadel --------- Co-authored-by: Mike Hardy <github@mikehardy.net>
1 parent a2e3206 commit a6805bc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/app/lib/internal/registry/nativeModule.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ function nativeModuleWrapped(namespace, NativeModule, argToPrepend) {
6565
return NativeModule;
6666
}
6767

68-
const properties = Object.keys(NativeModule);
68+
let properties = Object.keys(Object.getPrototypeOf(NativeModule));
69+
if (!properties.length) properties = Object.keys(NativeModule);
6970

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

0 commit comments

Comments
 (0)