@react-native-community/cli-hermes
This package is part of the [React Native CLI](../../README.md). It contains commands for managing the Hermes engine.
- Static
- Latest Patch
- Latest Minor
- Latest Major
- 13.6.9
- 13.6.8
- 13.6.7
- 13.6.6
- 13.6.5
- 13.6.4
- 13.6.3
- 13.6.2
- 13.6.1
- 13.6.0
- 13.5.2
- 13.5.1
- 13.5.0
- 13.4.0
- 13.3.0
- 13.2.0
- 13.1.0
- 13.0.1
- 13.0.0
- 12.3.7
- 12.3.6
- 12.3.5
- 12.3.4
- 12.3.3
- 12.3.2
- 12.3.1
- 12.3.0
- 12.2.1
- 12.2.0
- 12.1.1
- 12.1.0
- 12.0.0
- 11.4.1
- 11.4.0
- 11.3.10
- 11.3.9
- 11.3.8
- 11.3.7
- 11.3.6
- 11.3.5
- 11.3.4
- 11.3.3
- 11.3.2
- 11.3.1
- 11.3.0
- 11.2.3
- 11.2.2
- 11.2.1
- 11.2.0
- 11.1.3
- 11.1.2
- 11.1.1
- 11.0.2
- 11.0.1
- 11.0.0
- 10.2.7
- 10.2.0
- 10.1.3
- 10.1.2
- 10.1.1
- 10.1.0
- 10.0.0
- 9.3.4
- 9.3.1
- 9.3.0
- 9.2.1
- 9.2.0
- 9.1.0
- 9.0.1
- 9.0.0
- 8.0.5
- 8.0.4
- 8.0.2
- 8.0.0
- 7.0.1
- 6.3.1
- 6.3.0
- 6.2.0
- 6.1.0
- 6.0.1
- 6.0.0
- 5.0.1
- 4.13.0
- 13.5.1-alpha.0
- 12.0.0-alpha.18
- 12.0.0-alpha.17
- 12.0.0-alpha.16
- 12.0.0-alpha.15
- 12.0.0-alpha.14
- 12.0.0-alpha.13
- 12.0.0-alpha.12
- 12.0.0-alpha.11
- 12.0.0-alpha.10
- 12.0.0-alpha.9
- 12.0.0-alpha.8
- 12.0.0-alpha.7
- 12.0.0-alpha.6
- 12.0.0-alpha.5
- 12.0.0-alpha.4
- 12.0.0-alpha.3
- 12.0.0-alpha.2
- 12.0.0-alpha.1
- 12.0.0-alpha.0
- 11.0.0-alpha.2
- 11.0.0-alpha.0
- 10.0.0-alpha.4
- 10.0.0-alpha.3
- 10.0.0-alpha.2
- 10.0.0-alpha.1
- 10.0.0-alpha.0
- 9.0.0-alpha.11
- 9.0.0-alpha.10
- 9.0.0-alpha.7
- 9.0.0-alpha.6
- 9.0.0-alpha.5
- 9.0.0-alpha.4
- 9.0.0-alpha.3
- 9.0.0-alpha.2
- 9.0.0-alpha.0
- 8.0.0-alpha.3
- 8.0.0-alpha.0
- 6.0.0-rc.0
- 5.0.1-alpha.1
- 5.0.1-alpha.0
- 5.0.0-alpha.0
@react-native-community/cli-hermes
This package is part of the React Native CLI. It contains commands for managing the Hermes engine.
Installation
yarn add @react-native-community/cli-hermes
Commands
profile-hermes
Usage:
npx react-native profile-hermes [destinationDir] <flag>
Pull and convert a Hermes tracing profile to Chrome tracing profile, then store it in the directory of the local machine.
destinationDir
is optional, if provided, pull the file to that directorydefault: pull to the current React Native app root directory
Options
--filename <string>
File name of the profile to be downloaded, eg. sampling-profiler-trace8593107139682635366.cpuprofile.
default: pull the latest file
--raw
Pulls the original Hermes tracing profile without any transformation
--sourcemap-path <string>
The local path to your source map file if you generated it manually, ex. /tmp/sourcemap.json
--generate-sourcemap
Generate the JS bundle and source map in os.tmpdir()
--port <number>
The running metro server port number
default: 8081
--appId <string>
Specify an applicationId
to launch after build. If not specified, package
from AndroidManifest.xml will be used.
--appIdSuffix <string>
Specify an applicationIdSuffix
to launch after build.
--host <string>
The host of the packager.
default: localhost
Notes on source map
This step is recommended in order for the source map to be generated:
If you are planning on building a debug APK, that will run without the packager, by invoking ./gradlew assembleDebug
you can simply set bundleInDebug: true
in your app/build.gradle file, inside the project.ext.react
map.