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-qq

v0.1.5

Published

腾讯开放平台Tencent Open API框架的React Native插件版本。可用于实现QQ登录和分享等功能。全自动配置,省去了繁琐的配置流程。

Readme

expo-qq

这是QQ开放平台,Tencent Open API的React Native封装,支持所有QQ开放平台的功能。基于TypeScript和最新的Expo Module Api实现,全类型提示支持。

安装📦

npx expo install expo-qq

配置🔧

app.json 中配置你的app id,这将用于自动配置安卓清单文件。同时要配置通用链接和URL Scheme等信息:

请注意,通用链接并不是在这里写了就生效的,你需要在腾讯后台注册,还需要在你的服务器的.well-known目录下添加apple-app-site-association文件,具体可以搜iOS Deep Link看看相关文档。

{
  "expo": {
    "scheme": [
      "tencent+你的腾讯QQ App ID,如tencent12345"
    ],
    "ios": {
      "associatedDomains": ["请在这里配置你的通用链接"]
    },
    "plugins": [
      [
        "expo-qq",
        {
          "appId": "你的腾讯QQ App ID"
        }
      ]
    ]
  }
}

添加了这些配置后,执行npx expo prebuild,它会自动帮你配置安卓和iOS项目。

使用📱

import { useEffect } from 'react';
import ExpoQQ from 'expo-qq';


export default function App() {
  /// 监听登录结果,你也可以使用ExpoQQ.addListener('onLoginFinished', callback)来实现,但请不要忘记移除监听
  const onLoginFinished = useEvent(ExpoQQ, 'onLoginFinished');

  /// 国内应用需要在用户接受隐私协议后再初始化
  useEffect(() => {
    const init = async () => {
      await ExpoQQ.init('appId', 'universal link')
    }

    init()
  }, [])

  /// 调用qq登陆
  const loginByQQ = async () => {
    await ExpoQQ.login(['get_user_info'])
  }
}

常见问题❓

我使用Exou Router,我的QQ跳回App后,跳到了一个404页面?

这是因为QQ会通过一个类似tencent1234567://qzapp/xxx的URL来跳到你的app,而expo router会尝试解析并跳转到/qzapp这个路由,但是很显然这个路由并不存在,所以就会显示404,

解决方案,使用Expo Router的Native Intent方案,新建app/+native-intent.tsx文件,并按照文档,拦截tencent1234567这种URL,重定向到你的登录页面即可。

联系我📞

本框架积极维护,如有任何问题,欢迎提交issue或者PR。 QQ 群:682911244。

线路图🚀

  • [ ] 添加日志功能
  • [ ] 完善Example

鸣谢👏

感谢pianduan-M同学为对本项目的测试和反馈作出的巨大贡献👏。