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 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-native-cyber-identity

v1.0.4

Published

TODO

Downloads

280

Readme

react-native-cyber-identity

国家网号ReactNative插件

Getting started

$ npm install react-native-cyber-identity --save

Mostly automatic installation

$ react-native link react-native-cyber-identity

android

在AndroidManifest.xml中添加QUERY_ALL_PACKAGES权限或者进行如下配置:

<queries>

<package android:name="cn.cyberIdentity.certification"/>

</queries>

ios

在AppDelegate.m中添加:

#import <ReactNativeCyberIdentity.h>

- (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void (^)(NSArray * _Nullable))restorationHandler { \ if ([userActivity.activityType isEqualToString:NSUserActivityTypeBrowsingWeb]) { // 获取Universal Links的URL \ NSURL *url = userActivity.webpageURL;

    // 根据URL处理你的逻辑
    // 例如,导航到特定的视图控制器
    // 返回YES表示你已处理该活动
  return [ReactNativeCyberIdentity resolveURL:url];

} // 返回NO表示你未处理该活动,系统将处理它 return NO; }

Usage

import ReactNativeCyberIdentity from 'react-native-cyber-identity';

/**
 * @param orgId 机构ID,业务接入申请时,分配给机构的唯一标识
 * @param appId 应用ID,业务接入申请时,分配给网络应用App的唯一标识。
 * @param bizSeq 由接入机构生成,用于标识每笔业务的唯一性,与《国家网络身份认证公共服务接口说明书(网络身份认证)》中的bizSeq参数一致。
 * @param type 0:网络身份认证凭证 1:网络身份认证凭证+口令 1)当认证模式选择R01、R03时,type值为0 2)当认证模式选择R02、R04时,type值为1,必须32位
 * @param miniProgramID 小程序平台为小程序分配的唯一编号,如“wx12345”,小程序拉起国家网络身份认证App时,值不为空。
 * @param miniProgramPlatformID 国家网络身份认证公共服务平台为小程序平台派发的平台编号,小程序拉起国家网络身份认证App时,值不为空。
 * @param uLink 使用Universal Links方法返回结果时,此参数必填;uLink为空或无此字段时,国家网络身份认证App采用URLScheme方式返回结果。
 * return Promise
 */

ReactNativeCyberIdentity.login(orgId, appId, bizSeq, type, miniProgramID, miniProgramPlatformID, uLink)