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

@ylzj/react-native-nfc

v0.1.5

Published

Company NFC kit (NFC manager + HCE) as a single install.

Readme

@ylzj/react-native-nfc

  • 读卡/写卡/扫描能力(来源:react-native-nfc-manager 的 vendored 源码)
  • 模拟卡/HCE/APDU 能力(来源:react-native-host-card-emulation 的 vendored 源码)

安装

npm i --save @ylzj/react-native-nfc

使用

import {
  NfcManager,
  NfcTech,
  NativeHCEModule,
  createBackgroundHCE,
} from '@ylzj/react-native-nfc';

说明

  • iOS 读卡能力依赖系统 CoreNFC(设备/系统限制以 Apple 为准)。
  • iOS 的 HCE 需要 Apple entitlement;未配置时相关能力不可用。

Android:配置你自己的 AID(HCE)

本包在 Android 侧默认使用库内置的 @xml/aid_list 来声明可匹配的 AID 列表(用于锁端 SELECT AID)。

如果你在其他 React Native 项目里安装了本包,并希望使用你自己项目的 AID,推荐在你的 App 工程里覆盖同名资源文件

  • 路径android/app/src/main/res/xml/aid_list.xml
  • 效果:由于 Android 的资源合并优先级 App > library,你在 App 里放同名 aid_list.xml 会覆盖本包内置的默认 AID,无需修改 AndroidManifest.xml

示例(把 F0010203040506 换成你们自己的 AID,十六进制字符串):

<host-apdu-service xmlns:android="http://schemas.android.com/apk/res/android"
  android:description="@string/app_name"
  android:requireDeviceUnlock="false">
  <aid-group android:category="other" android:description="@string/app_name">
    <aid-filter android:name="F0010203040506" />
  </aid-group>
</host-apdu-service>