Skip to content

Commit 421fde4

Browse files
authored
Simplify JavaScriptCore opt-out instructions (#4825)
1 parent 31bf801 commit 421fde4

File tree

2 files changed

+2
-48
lines changed

2 files changed

+2
-48
lines changed

docs/hermes.md

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -92,27 +92,4 @@ This will compile JavaScript to Hermes Bytecode during build time which will imp
9292

9393
## Switching back to JavaScriptCore
9494

95-
React Native also supports using JavaScriptCore as the [JavaScript engine](javascript-environment). Follow these instructions to opt-out of Hermes.
96-
97-
### Android
98-
99-
Edit your `android/gradle.properties` file and flip `hermesEnabled` back to false:
100-
101-
```diff
102-
# Use this property to enable or disable the Hermes JS engine.
103-
# If set to false, you will be using JSC instead.
104-
hermesEnabled=false
105-
```
106-
107-
### iOS
108-
109-
Edit your `ios/Podfile` file and make the change illustrated below:
110-
111-
```diff
112-
use_react_native!(
113-
:path => config[:reactNativePath],
114-
+ :hermes_enabled => false,
115-
# An absolute path to your application root.
116-
:app_path => "#{Pod::Config.instance.installation_root}/.."
117-
)
118-
```
95+
React Native also supports using JavaScriptCore as the [JavaScript engine](javascript-environment). Follow the instructions [from the community repository](https://github.com/react-native-community/javascriptcore) to opt-out of Hermes.

website/versioned_docs/version-0.81/hermes.md

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -92,27 +92,4 @@ This will compile JavaScript to Hermes Bytecode during build time which will imp
9292

9393
## Switching back to JavaScriptCore
9494

95-
React Native also supports using JavaScriptCore as the [JavaScript engine](javascript-environment). Follow these instructions to opt-out of Hermes.
96-
97-
### Android
98-
99-
Edit your `android/gradle.properties` file and flip `hermesEnabled` back to false:
100-
101-
```diff
102-
# Use this property to enable or disable the Hermes JS engine.
103-
# If set to false, you will be using JSC instead.
104-
hermesEnabled=false
105-
```
106-
107-
### iOS
108-
109-
Edit your `ios/Podfile` file and make the change illustrated below:
110-
111-
```diff
112-
use_react_native!(
113-
:path => config[:reactNativePath],
114-
+ :hermes_enabled => false,
115-
# An absolute path to your application root.
116-
:app_path => "#{Pod::Config.instance.installation_root}/.."
117-
)
118-
```
95+
React Native also supports using JavaScriptCore as the [JavaScript engine](javascript-environment). Follow the instructions [from the community repository](https://github.com/react-native-community/javascriptcore) to opt-out of Hermes.

0 commit comments

Comments
 (0)