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

meetyou-rn-components

v0.2.7

Published

MeetYou React Native Components -- 美柚 RN 开发组件库 ==========

Downloads

10

Readme

MeetYou React Native Components -- 美柚 RN 开发组件库

参考文档

  • http://git.meiyou.im/ReactNative/ReactNative/blob/master/%E5%85%B1%E4%BA%ABBridge%E6%94%B9%E9%80%A0.md
  • http://git.meiyou.im/ReactNative/ReactNative/blob/master/LinganReactNativeModule.md

重构 2018.3.15

1、原原生桥接模块 MeiyouRNBridge 变为 LinganReactNativeModule;但使用不变 需统一引用为/index.js 中 MeiyouRNBridge

   /**
   * 统一封装客户端bridge模块
   */
   const MeiyouRNBridge = NativeModules.LinganReactNativeModule;

2、共享bridge;修改: 很多事件方法添加viewId,标识调用的view。组件库直接封装,业务层不需要改动。

3、在业务层:通过this.props.nativeProps.viewId获取viewId

4、setLoadingState与showToast方法通过在service.js调用

5、事件调用,通过中间层 event.js(Event.enventEmitter())

6、使用共享bridge之后,事件一旦触发,上下文中的相同事件都会监听到,可以拿当前页面对应的viewId与事件回调返回的viewId做 比较,只触发当前页面的事件,不触发全文的事件

7、从base.js中获取viewId

8、runAction的reactnative协议比较特殊,需要额外传递两个参数

    /**
    * params中的isShareBridge是标识是否需要共享 1表示需要分享 params.isShareBridge = '1' 
    * viewId为当前页面的viewId
    */
   LinganReactNativeModule.runAction(viewId, path, params, info);