mirror of
https://github.com/status-im/react-native.git
synced 2025-01-15 20:15:11 +00:00
[Logs] Remove already registered warning
This commit is contained in:
parent
b888e8db40
commit
1ca1a44a07
@ -246,12 +246,6 @@ id<RCTJavaScriptExecutor> RCTGetLatestExecutor(void)
|
|||||||
"'%@', but name was already registered by class %@", moduleClass,
|
"'%@', but name was already registered by class %@", moduleClass,
|
||||||
moduleName, [modulesByName[moduleName] class]);
|
moduleName, [modulesByName[moduleName] class]);
|
||||||
}
|
}
|
||||||
if ([module class] != moduleClass) {
|
|
||||||
RCTLogInfo(@"RCTBridgeModule of class %@ with name '%@' was encountered "
|
|
||||||
"in the project, but name was already registered by class %@."
|
|
||||||
"That's fine if it's intentional - just letting you know.",
|
|
||||||
moduleClass, moduleName, [modulesByName[moduleName] class]);
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
// Module name hasn't been used before, so go ahead and instantiate
|
// Module name hasn't been used before, so go ahead and instantiate
|
||||||
module = [moduleClass new];
|
module = [moduleClass new];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user