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

react-native-microtools

v1.0.2

Published

引入包文件

Readme

基础配置

引入包文件

$ npm install react-native-microtools --save

$ react-native link react-native-microtools

执行完这两句之后,直接在使用文件地址引入;

一、打开浏览器跳转对应链接(默认浏览器)

调用方法:

import RNMicrotools from 'react-native-microtools';

RNMicrotools.openLink(linkAddress);  //linkAddress:需打开链接地址  

二、唤醒APP

iOS >>>>>>>>>>>>>>

1、需配置iOS白名单

修改./ios/你的项目/info.plist

添加以下内容

<!-- 第三方APP白名单 -->

<key>LSApplicationQueriesSchemes</key>
<array>
    <string>wexin</string>
    <string>alipay</string>
</array>

2、js调用


import RNMicrotools from 'react-native-microtools';

RNMicrotools.openApp(appName);  

//appName:对应APP名称   目前只有微信(weixin)、支付宝(alipay)
 

Android >>>>>>>>>>>>>>>>>>

正常使用js调用


import RNMicrotools from 'react-native-microtools';

RNMicrotools.openApp(appName);  

//appName:对应APP名称   目前只有微信(weixin)、支付宝(alipay)
 

三、获取设备信息

iOS >>>>>>>>>>>>>>

参考链接:https://www.npmjs.com/package/react-native-device-info

1、首先在xcode中进行初始化

打开xcode,找到自己的项目->Libraries文件夹,选择Add Files to '项目名',然后找到当前项目目录/node_modules/react-native-device-info文件夹,找到'RNDe'viceInfo.xcodeproj'文件,然后点击Add.

2、再在xcode中加载内库

找到项目名字 ----> Build Phases ---> Link Binary With Libraries, 点击‘+’按钮,添加‘libRNDeviceInfo.a’库。

3、继续添加环境变量

找到项目名字 ----> Build Setting ---> Header Search Paths 增加以下两个环境变量

$(SRCROOT)/../react-native/Reactand

$(SRCROOT)/../../React

并修改recursive.

4、js调用 在项目根目录先运行

npm link react-native-device-info
import RNMicrotools from 'react-native-microtools';

const devices=RNMicrotools.getDevice();  

devices.getUniqueID();  //API参照官方

Android >>>>>>>>>>>>>>>>>>

正常使用js调用


import RNMicrotools from 'react-native-microtools';

const devices=RNMicrotools.getDevice();  

devices.getUniqueID();  //API参照官方