diff --git a/React/Executors/RCTJSCExecutor.mm b/React/Executors/RCTJSCExecutor.mm index f45067eb3..3bad2ee2d 100644 --- a/React/Executors/RCTJSCExecutor.mm +++ b/React/Executors/RCTJSCExecutor.mm @@ -543,7 +543,7 @@ static void installBasicSynchronousHooksOnContext(JSContext *context) - (int32_t)bytecodeFileFormatVersion { - return _tryBytecode + return (_useCustomJSCLibrary && _tryBytecode) ? facebook::react::customJSCWrapper()->JSBytecodeFileFormatVersion : JSNoBytecodeFileFormatVersion; }