Skip to content

Commit

Permalink
iOS: supress yellow box about missing export for native modules
Browse files Browse the repository at this point in the history
Summary: Simply changing RCTLogWarn() to RCTLogInfo(), since some modules can be loaded without explicit export (experimental).

Reviewed By: mdvacca

Differential Revision: D12899442

fbshipit-source-id: 524d345265eda4a601101d878d51c244a8441fb5
  • Loading branch information
fkgozali authored and facebook-github-bot committed Nov 2, 2018
1 parent 7f79254 commit 5431607
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion React/Base/RCTBridge.m
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ void RCTVerifyAllModulesExported(NSArray *extraModules)
break;
}

RCTLogWarn(@"Class %@ was not exported. Did you forget to use RCT_EXPORT_MODULE()?", cls);
// Note: Some modules may be lazily loaded and not exported up front, so this message is no longer a warning.
RCTLogInfo(@"Class %@ was not exported. Did you forget to use RCT_EXPORT_MODULE()?", cls);
break;
}
superclass = class_getSuperclass(superclass);
Expand Down

0 comments on commit 5431607

Please sign in to comment.