iOS: supress yellow box about missing export for native modules

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
This commit is contained in:
Kevin Gozali 2018-11-01 23:09:44 -07:00 committed by Facebook Github Bot
parent 7f79254cfe
commit 5431607c6d
1 changed files with 2 additions and 1 deletions

View File

@ -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);