Edit your android/app/build.gradle file and make the change illustrated below: This is applicable for React native version >0.62.
project.ext.react = [ entryFile: "index.js", - enableHermes: false // clean and rebuild if changing + enableHermes: true // clean and rebuild if changing ]
Now rebuild the android project and you can see the changes.
Hermes opt-in on iOS (Hermes support on iOS is still early stage)
This is applicable for React native version >0.64
To enable Hermes on iOS, set hermes_enabled to true in your Podfile and run pod install.
use_react_native!(:path => config["reactNativePath"])
use_react_native!( :path => config[:reactNativePath], # to enable hermes on iOS, change `false` to `true` and then install pods :hermes_enabled => true )