npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@expo-harmony/expo__log-box

v55.0.13-harmony.4

Published

HarmonyOS port of @expo/log-box

Readme

@expo-harmony/expo__log-box

GitHub 仓库

为 HarmonyOS 开发构建提供 Expo LogBox 的日志检查器和原生错误页面,与官方 @expo/log-box 配套使用。

安装

npm install @expo-harmony/expo__log-box @expo/[email protected]

本包适配 Expo SDK 55 的 @expo/log-box,提供鸿蒙端的原生视图和错误页。原生模块和视图通过 Expo Harmony 自动链接。最低支持 HarmonyOS 5.0.1(API 13),宿主的 compatibleSdkVersion 也要满足这一要求。Expo LogBox 是实验功能,安装后还需要注册配置插件并组合 Metro 配置,两者都要求设置 EXPO_UNSTABLE_LOG_BOX=1,见下文。

Config Plugin

在 app.json 的 plugins 中注册插件。

{
  "expo": {
    "plugins": ["@expo-harmony/expo__log-box"],
    "harmony": { "bundleName": "com.example.app" }
  }
}

再在 metro.config.js 中组合配置。

const { getDefaultConfig } = require('expo/metro-config');
const { withHarmonyConfig } = require('@expo-harmony/metro-config');
const { withLogBox } = require('@expo-harmony/expo__log-box/metro');

module.exports = withLogBox(withHarmonyConfig(getDefaultConfig(__dirname)));

prebuild、原生构建和 Metro 启动均需设置 EXPO_UNSTABLE_LOG_BOX=1(也接受 true)。插件把开关写入原生工程配置,原生端只在 debug 构建中启用。变更开关后需重新生成并构建应用,只启用 Metro 时会报告原生配置不匹配。

@expo-harmony/expo__log-box 的 withLogBox 只改写 HarmonyOS 平台上的模块解析,其他平台和其他包不受影响。

Author

expo-harmony © Baoshuo, Released under the MIT License. Authored and maintained by Baoshuo with help from contributors.

Personal Website · Blog · GitHub @renbaoshuo · Twitter @renbaoshuo