Skip to content

Commit 6ceef13

Browse files
fkgozalifacebook-github-bot
authored andcommitted
iOS Logbox: always return a turbomodule instance
Summary: We have assertion to ensure that `getTurboModuleWithJsInvoker:` returns non-nullptr, so conditionally returning `nullptr` is not going to work. Changelog: [Internal] Reviewed By: sammy-SC Differential Revision: D19103125 fbshipit-source-id: 663850c01e4db40cca96d254950ea5a7bf6b96b7
1 parent 5e50d31 commit 6ceef13

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

React/CoreModules/RCTLogBox.mm

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,7 @@ + (BOOL)requiresMainQueueSetup
117117

118118
- (std::shared_ptr<facebook::react::TurboModule>)getTurboModuleWithJsInvoker:(std::shared_ptr<facebook::react::CallInvoker>)jsInvoker
119119
{
120-
if (RCTRedBoxGetEnabled()) {
121-
return std::make_shared<facebook::react::NativeLogBoxSpecJSI>(self, jsInvoker);
122-
}
123-
124-
return nullptr;
120+
return std::make_shared<facebook::react::NativeLogBoxSpecJSI>(self, jsInvoker);
125121
}
126122

127123
@end

0 commit comments

Comments
 (0)