Skip to content

Commit 9c81205

Browse files
committed
Check module isn't null on lookupForRNModules (#506)
1 parent b551b33 commit 9c81205

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/worker/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const lookupForRNModules = (size = 999) => {
5151
}
5252
for (let moduleId = 0; moduleId <= actualSize - 1; moduleId++) {
5353
const rn = getModule(moduleId);
54-
if (rn.requireNativeComponent && rn.NativeModules) {
54+
if (rn && rn.requireNativeComponent && rn.NativeModules) {
5555
return rn;
5656
}
5757
}

0 commit comments

Comments
 (0)