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-umeng-share

v1.0.2

Published

react native友盟分享插件

Downloads

11

Readme

react native 友盟分享插件

请移至 https://github.com/yolinsoft/react-native-dk-umeng

【已停止维护】

官方已出 React-Native 版本,请移至官网地址 https://developer.umeng.com/docs/66632/detail/67587

或者使用我自己封装的 https://github.com/yolinsoft/react-native-dk-umeng

目前支持微信好友、微信朋友圈、微信收藏、新浪微博、QQ 好友和 QQ 空间分享

安卓版已完工,IOS 版正在开发中

自动安装

npm install react-native-umeng-share --save

react-native link react-native-umeng-share

手动安装

android

  • android/setting.gradle 中添加
include ':react-native-umeng-share'
project(':react-native-umeng-share').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-umeng-share/android')
  • android/app/build.gradle 中添加
dependencies {
    ...
    compile project(':react-native-umeng-share')
    ...
}
  • android/app/src/main/java/.../MainApplication.java 中添加

    • 文件顶部添加 import com.yolinsoft.umengshare.UmengSharePackage;
    • 在 getPackages()方法中添加 new UmengSharePackage()

微信集成问题

  1. 点击分享面板的微信分享,出现闪退现象,无法到微信分享好友列表?

    出现这个效果 多数是由于微信开放平台填写的包名和签名和你实际打包签名的 apk 的包名和签名不一致造成的!可以使用tools文件里面的签名工具获取包签名 ( 微信开放平台填写的签名需要大写转小写去掉冒号 ) 改好了之后可以卸载下 app 然后重新安装下进行测试, 这个问题就很快搞定了

  2. 点击微信分享面板的微信分享,然后就一直在转圈圈,不能进入微信好友列表,也不闪退?

    这个是因为图片过大造成的

  3. 以下的事情,你不要做

    不要用文档里面提供的微信 appid 和 secret

    测试的时候要用打包签名的进行测试,以打包签名的为准 别说为啥我之前就好使现在怎么就不行的事儿, 如果出现 一定先检查下签名

示例

import UmengShare from 'react-native-umeng-share';

...

UmengShare.setWeixin("wx86178e0f4c497b8c", "22f46af56d313852cf1957edf394b6b1");
UmengShare.setQQZone("100424468", "c7394704798a158208a74ab60104f0ba");
UmengShare.setSinaWeibo("3921700954", "04b48b094faeb16683c32669824ebdad");
UmengShare.openShare("我是标题", "我是内容", "http://www.yolinsoft.com", {uri:"http://www.yolinsoft.com/static/image/common/logo.png"})