diff --git a/React/Executors/RCTJSCExecutor.mm b/React/Executors/RCTJSCExecutor.mm index f45067eb3d194e..3bad2ee2d895dc 100644 --- a/React/Executors/RCTJSCExecutor.mm +++ b/React/Executors/RCTJSCExecutor.mm @@ -543,7 +543,7 @@ - (void)invalidate - (int32_t)bytecodeFileFormatVersion { - return _tryBytecode + return (_useCustomJSCLibrary && _tryBytecode) ? facebook::react::customJSCWrapper()->JSBytecodeFileFormatVersion : JSNoBytecodeFileFormatVersion; }