Skip to content

Commit

Permalink
Check module isn't null on lookupForRNModules (jhen0409#506)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhen0409 authored May 5, 2020
1 parent 4e9276e commit 57ccacc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/worker/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const lookupForRNModules = (size = 999) => {
}
for (let moduleId = 0; moduleId <= actualSize - 1; moduleId++) {
const rn = getModule(moduleId);
if (rn.requireNativeComponent && rn.NativeModules) {
if (rn && rn.requireNativeComponent && rn.NativeModules) {
return rn;
}
}
Expand Down

0 comments on commit 57ccacc

Please sign in to comment.