Skip to content

Commit fe5238a

Browse files
committed
feat: enable hermes
1 parent 36c152f commit fe5238a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/react-native/sdks/hermes-engine/hermes-engine.podspec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ package = JSON.parse(File.read(File.join(react_native_path, "package.json")))
1313
version = package['version']
1414

1515
# Temporaily build from source until visionOS supports prebuilt binaries
16-
source_type = HermesEngineSourceType::BUILD_FROM_GITHUB_TAG # hermes_source_type(version, react_native_path)
16+
source_type = HermesEngineSourceType::BUILD_FROM_GITHUB_COMMIT # hermes_source_type(version, react_native_path)
17+
ENV['HERMES_COMMIT'] = "7701f77717171a5a778c2c7657b78ab77c637ead"
1718
source = podspec_source(source_type, version, react_native_path)
1819

1920
Pod::Spec.new do |spec|

packages/react-native/template/visionos/Podfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ target 'HelloWorld' do
2020

2121
use_react_native!(
2222
:path => config[:reactNativePath],
23-
# Hermes is disabled for visionOS, until it's officially supported. If you want to run Hermes anyway, check this issue: https://github.com/callstack/react-native-visionos/issues/128
24-
:hermes_enabled => false,
2523
# An absolute path to your application root.
2624
:app_path => "#{Pod::Config.instance.installation_root}/.."
2725
)

0 commit comments

Comments
 (0)