Skip to content

Commit

Permalink
Fix xcodebeta build failure
Browse files Browse the repository at this point in the history
Summary:
Changelog:
[iOS][Changed] - Removed methodName parameter that was used only for a warning message and moved the warning parameter to be calculated inline.

Reviewed By: fkgozali

Differential Revision: D34551444

fbshipit-source-id: 6ceba425b64df37b0dca7e222072f1836f151d83
  • Loading branch information
Gal Shirin authored and facebook-github-bot committed Mar 2, 2022
1 parent 131844f commit cfb11ca
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -702,18 +702,14 @@ - (BOOL)_requiresMainQueueSetup:(Class)moduleClass

BOOL requiresMainQueueSetup = hasConstantsToExport || hasCustomInit;
if (requiresMainQueueSetup) {
const char *methodName = "";
if (hasConstantsToExport) {
methodName = "constantsToExport";
} else if (hasCustomInit) {
methodName = "init";
}
RCTLogWarn(
@"Module %@ requires main queue setup since it overrides `%s` but doesn't implement "
"`requiresMainQueueSetup`. In a future release React Native will default to initializing all native modules "
"on a background thread unless explicitly opted-out of.",
moduleClass,
methodName);
hasConstantsToExport ? "constantsToExport"
: hasCustomInit ? "init"
: "");
}

return requiresMainQueueSetup;
Expand Down

0 comments on commit cfb11ca

Please sign in to comment.