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 коммит произвёл Facebook Github Bot
Родитель 7f79254cfe
Коммит 5431607c6d
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -130,7 +130,8 @@ void RCTVerifyAllModulesExported(NSArray *extraModules)
break; 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; break;
} }
superclass = class_getSuperclass(superclass); superclass = class_getSuperclass(superclass);