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-status-bar

v57.0.1-harmony.1

Published

HarmonyOS port of expo-status-bar

Readme

@expo-harmony/expo-status-bar

GitHub 仓库 | 官方文档

为 HarmonyOS 上的 React Native 应用提供 Expo StatusBar 的原生实现,与官方 expo-status-bar 配套使用。

安装

本包适配 Expo SDK 57。

引入本包前,需要确保应用使用的 HarmonyOS SDK 至少为 API 13(HarmonyOS 5.0.1)。

npm install @expo-harmony/expo-status-bar expo-status-bar@~57.0.1

在 app.json 的 expo.plugins 中加入 ["@expo-harmony/expo-status-bar", { "style": "dark", "hidden": false }],可以在 JavaScript 启动前设置状态栏。style 接受 'light' 或 'dark'。hidden 接受布尔值,false 显式显示状态栏。省略的属性由窗口默认设置决定。

系统在受支持设备的全屏或最大化主窗口上应用状态栏设置。自由窗口模式下由系统管理状态栏。

API 对照表

Components

StatusBar

控制状态栏文字和图标颜色,以及状态栏的显示和隐藏。参数见 StatusBarProps。

Methods

StatusBar.setStyle(style, animated?)

设置状态栏文字和图标颜色,style 接受 StatusBarStyle,animated 为可选布尔值。返回 void。

  • 当前 RNOH 的状态栏样式切换无动画效果。

StatusBar.setHidden(hidden, animation?)

显示或隐藏状态栏。hidden 为布尔值;animation 接受 StatusBarAnimation,省略时默认为 'none'。返回 void。

  • 当前 RNOH 的状态栏显隐使用系统默认行为,animation 不生效。

setStatusBarStyle(style, animated?)

已弃用。参数和返回值与 StatusBar.setStyle() 相同。

setStatusBarHidden(hidden, animation?)

已弃用。参数和返回值与 StatusBar.setHidden() 相同。

Types

StatusBarProps

StatusBar 的属性:style 为可选的 StatusBarStyle,默认值为 'auto';hidden 为可选布尔值,默认显示状态栏;animated 为可选布尔值;hideTransitionAnimation 为可选的 StatusBarAnimation,默认值为 'fade'。

  • 当前 RNOH 的状态栏样式切换无动画效果。

StatusBarStyle

可选值为 'auto'、'inverted'、'light' 和 'dark'。'light' 设置浅色文字和图标,'dark' 设置深色文字和图标;'auto' 在系统浅色模式下使用深色文字和图标,在深色模式下使用浅色;'inverted' 使用相反颜色。

StatusBarAnimation

可选值为 'none'、'fade' 和 'slide'。

  • 当前 RNOH 的状态栏显隐使用系统默认行为。

Author

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