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

c2-mobile

v2.0.8

Published

c2移动端基础组件库

Readme

c2-mobile

c2移动端基础组件库

说明

1、内置添加的第三方库

  • @react-native-firebase/storage 官网文档

    ios需要运行 npx pod-install ->待验证

注意

  • 1.59.107-rc.6版本之前为总公司研究院发布的版本
  • 2.x以后,由云南分公司前端开发团队重构、升级rn后的新版本
  • 1.x和2.x本质不同,非必要,不要切换两个大版本
  • 2.x文档

Installation

npm install c2-mobile

Usage

import { multiply } from 'c2-mobile';

// ...

const result = await multiply(3, 7);

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library

c2-mobile.podspec 关联脚本 ios/c2-mobile.rb [已弃用]

鉴于react-native 0.7.2 不能自动连接、安装c2-mobile package.json 中dependence 原生模块,c2-mobile.podspec 会对第三方依赖进行拷贝【检测到主工程package.json代码未包含相关依赖时才会拷贝】 c2-mobile.rb 的创建解决copy、安装第三方可复用性的问题【.podspec文件不能置入方法需,但可引用ruby脚本】

c2-mobile iOS依赖第三方RN 插件的自动引入处理

添加 postinstall 将在@react-native-community/cli-platform-ios/native_modules.rb 中扩展注入c2-mobile 依赖,postinstall 判断了操作系统,只有在Mac os下才执行

c2-mobile 注入了两句代码

require_relative '../../../../ios/c2-inject.rb'
inject_c2_depends(packages)

c2-inject.rb 将会在pod install 时注入c2-mobile 的依赖包,依赖包的配置文件在ios/c2-third.json文件之中

关于 c2-third.json 的依赖获取

在example 项目中添加依赖包【c2-mobile-base根目录的package.json dependencies 的的依赖项】, cd 至example文件夹 并执行 react-native config, 此时将打印出原生依赖的json内容。复制json内容的dependencies至 c2-third.json文件即可

iOS 部分功能未为间接引用以下功能,直接拷贝第三方插件源码至pod 仓库

  • react-native-background-timer源码拷贝
RNBackgroundTimer.h
RNBackgroundTimer.n

## 相机相关组件
使用第三方组件。由于react-native-camera过时,因此替换成如下组件,相关文档请查看官网api
[react-native-vision-camera](https://www.react-native-vision-camera.com)