Permalink
Browse files

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
  • Loading branch information...
fkgozali authored and facebook-github-bot committed Nov 2, 2018
1 parent 7f79254 commit 5431607c6d4983e0adccf0192dd4dc4f5dc85443
Showing with 2 additions and 1 deletion.
  1. +2 −1 React/Base/RCTBridge.m
@@ -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);

0 comments on commit 5431607

Please sign in to comment.