Skip to content

Commit 5431607

Browse files
fkgozalifacebook-github-bot
authored andcommitted
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
1 parent 7f79254 commit 5431607

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

React/Base/RCTBridge.m

+2-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ void RCTVerifyAllModulesExported(NSArray *extraModules)
130130
break;
131131
}
132132

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

0 commit comments

Comments
 (0)