Skip to content

Commit 194e279

Browse files
committed
feat: enable hermes by default
1 parent d53d5e4 commit 194e279

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

packages/create-react-native-library/templates/example/example/android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ import org.apache.tools.ant.taskdefs.condition.Os
7979
*/
8080

8181
project.ext.react = [
82-
enableHermes: false, // clean and rebuild if changing
82+
enableHermes: true, // clean and rebuild if changing
8383
]
8484

8585
apply from: "../../node_modules/react-native/react.gradle"

packages/create-react-native-library/templates/example/example/android/app/proguard-rules.pro

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@
88
# http://developer.android.com/guide/developing/tools/proguard.html
99

1010
# Add any project specific keep options here:
11+
12+
-keep class com.facebook.hermes.unicode.** { *; }
13+
-keep class com.facebook.jni.** { *; }

packages/create-react-native-library/templates/example/example/ios/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ target '<%- project.name %>Example' do
1313
use_react_native!(
1414
:path => config[:reactNativePath],
1515
# to enable hermes on iOS, change `false` to `true` and then install pods
16-
:hermes_enabled => flags[:hermes_enabled],
16+
:hermes_enabled => true,
1717
:fabric_enabled => flags[:fabric_enabled],
1818
# An absolute path to your application root.
1919
:app_path => "#{Pod::Config.instance.installation_root}/.."

packages/create-react-native-library/templates/expo-library/example/app.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"ios": {
1616
"supportsTablet": true
1717
},
18+
"jsEngine": "hermes",
1819
"assetBundlePatterns": [
1920
"**/*"
2021
]

0 commit comments

Comments
 (0)