Skip to content

Commit aee4a25

Browse files
christophpurrermeta-codesync[bot]
authored andcommitted
Always return true in RCTTurboModuleEnabled (#57092)
Summary: Pull Request resolved: #57092 ## Changelog: [iOS][Fixed] Always return true in RCTTurboModuleEnabled Reviewed By: shwanton Differential Revision: D107686914 fbshipit-source-id: 316339fa6e1ef40395bd51aaec8f25594c483151
1 parent 2b6f605 commit aee4a25

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

packages/react-native/React/Base/RCTBridge.mm

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,6 @@ void RCTRegisterModule(Class moduleClass)
184184

185185
BOOL RCTTurboModuleEnabled(void)
186186
{
187-
#if RCT_DEBUG
188-
// TODO(T53341772): Allow TurboModule for test environment. Right now this breaks RNTester tests if enabled.
189-
if (RCTRunningInTestEnvironment()) {
190-
return NO;
191-
}
192-
#endif
193187
return YES;
194188
}
195189

0 commit comments

Comments
 (0)