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

@tuofeng/react-native-tuofeng-share

v0.3.0

Published

实现了微信授权登录、QQ授权登录、微博授权登录,以及微信分享、QQ分享、微博分享、邮件分享和短信分享

Downloads

7

Readme

#0.1版本增加微信小程序类型分享 ##iOS微信小程序类型分享说明 ###分享微信小程序的方法 ####原生端 shareToWeixinMiniWithInfo:(NSDictionary *)info appid:(NSString *)appid logo:(NSString *)logo callback:(RCTResponseSenderBlock)callback 参数:
info: 分享的内容
appid: 微信id
logo: 缩略图 微信缩略图不超过32k,需要压缩
####js端 shareToWeixinMini(info, weiXinAppID, shareTo, weiXindict) 参数:
info: 分享内容 {
path: 小程序页面路径
userName: 小程序账户ID
webpageUrl: 低版本网页链接,微信版本低于6.5.6,小程序类型分享将自动转成网页类型分享
title: 标题
desc: 描述
logo: 缩略图
}
weiXinAppID: 微信AppID
shareTo: 分享场景,0目前只支持会话场景

#android插件依赖 npm 插件包 rnpm link 包名 build.gradle查看是否添加了包 Mainapplication查看是否导入了插件 js端调用(查看index.android.js文件)

#android部分附加信息
app/build.gradle文件添加
defaultConfig{ ... manifestPlaceholders = [ QQ_APPID: "qqappid" ] }

项目目录下复制粘贴文件夹wxapi并修改对应java文件包名

注意android方法返回参数参考share.android.js事件注册

安装TFShare "React-Native-TFShare": "git+ssh://[email protected]:10022/zuojianjun/React-Native-TFShare.git", 在react native中没有Buffer,需要自己安装,运行命令:npm install buffer --save