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 🙏

© 2025 – Pkg Stats / Ryan Hefner

react-native-beidou

v1.1.2

Published

A React Native module for BeiDou Bluetooth communication.

Readme

React Native 北斗蓝牙 SDK(react-native-beidou)

安装

yarn add react-native-beidou  

iOS

ios/Podfile 中确保加入:

pod 'react-native-beidou', :path => '../node_modules/react-native-beidou'

执行:

cd ios && pod install

权限与配置

Android 权限

<!-- Android 12+ -->
<uses-permission android:name="android.permission.BLUETOOTH_SCAN" />
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />

<!-- Android 6.0+ 扫描需要位置权限 -->
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />

<!-- WiFi 名称读取(可选) -->
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />

<!-- 建议配置,声明低功耗蓝牙能力 -->
<uses-feature android:name="android.hardware.bluetooth_le" android:required="false" />

iOS 权限

<key>NSBluetoothAlwaysUsageDescription</key>
<string>需要使用蓝牙与北斗终端通信</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>用于蓝牙扫描或获取WiFi信息</string>

北斗小程序 RN 用到的所有库

"dependencies": {
"@ant-design/icons-react-native": "2.3.2",
"@ant-design/react-native": "5.3.1",
"@kafudev/react-native-vconsole": "^0.1.11",
"@react-native-async-storage/async-storage": "2.0.0",
"@react-navigation/bottom-tabs": "^6.3.1",
"@react-navigation/native": "^6.0.10",
"@react-navigation/native-stack": "^6.7.0",
"@react-navigation/stack": "^6.2.1",
"@reduxjs/toolkit": "^1.8.2",
"buffer": "^6.0.3",
"cmcc-bridge-module": "file:library/cmcc-bridge-module-1.0.0.tgz",
"crypto-es": "2.1.0",
"crypto-js": "4.2.0",
"dayjs": "1.11.13",
"lodash": "4.17.21",
"node-forge": "^1.3.1",
"react": "17.0.2",
"react-native": "0.68.7",
"react-native-axios": "0.17.1",
"react-native-beidou": "1.0.8",
"react-native-contacts": "^8.0.5",
"react-native-gesture-handler": "2.14.1",
"react-native-haptic-feedback": "1.14.0",
"react-native-image-zoom-viewer": "3.0.1",
"react-native-intersection-observer": "0.2.0",
"react-native-linear-gradient": "2.8.3",
"react-native-media-console": "2.2.4",
"react-native-orientation-locker": "1.4.0",
"react-native-reanimated": "2.17.0",
"react-native-reanimated-carousel": "3.5.1",
"react-native-render-html": "6.3.4",
"react-native-root-toast": "^3.5.1",
"react-native-safe-area-context": "4.5.0",
"react-native-signature-canvas": "4.7.2",
"react-native-storage": "1.0.1",
"react-native-svg": "12.5.1",
"react-native-video": "5.2.1",
"react-native-view-shot": "3.8.0",
"react-native-webview": "13.10.2",
"react-redux": "^8.0.2",
"redux-persist": "^6.0.0",
"supercluster": "7.1.5",
"rn-keychain": "1.0.1",
"zustand": "4.5.5"
},