Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@react-native-community/cli-hermes

Package Overview
Dependencies
Maintainers
30
Versions
125
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-native-community/cli-hermes

This package is part of the [React Native CLI](../../README.md). It contains commands for managing the Hermes engine.

  • 13.6.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.7M
increased by1.5%
Maintainers
30
Weekly downloads
 
Created
Source

@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 directory

    default: 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.

FAQs

Package last updated on 05 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc