This package is part of the React Native CLI. It contains commands for managing the Hermes engine.
yarn add @react-native-community/cli-hermesUsage:
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.
destinationDiris optional, if provided, pull the file to that directorydefault: pull to the current React Native app root directory
File name of the profile to be downloaded, eg. sampling-profiler-trace8593107139682635366.cpuprofile.
default: pull the latest file
Pulls the original Hermes tracing profile without any transformation
The local path to your source map file if you generated it manually, ex. /tmp/sourcemap.json
Generate the JS bundle and source map in os.tmpdir()
The running metro server port number
default: 8081
Specify an applicationId to launch after build. If not specified, package from AndroidManifest.xml will be used.
Specify an applicationIdSuffix to launch after build.
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.