Skip to content

Commit 941cc38

Browse files
Always return true in RCTTurboModuleEnabled
Summary: ## Changelog: [iOS][Fixed] Always return true in RCTTurboModuleEnabled Differential Revision: D107686914
1 parent 9dd979e commit 941cc38

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)