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

react-native-update-xys

v5.2.7

Published

react-native hot update

Downloads

15

Readme

react-native-update npm version

本组件是面向 React Native 提供热更新功能的组件,建议结合Update 服务使用。

最新更新

5.1.6: 解决 Android 热更新后部分图片丢失问题:

同一个项目中放置了多个完全相同的文件,在 5.1.0 至 5.1.5 之间的版本中,更新后有时会出现其中的部分无法显示。此问题在 5.1.6 版本修复。

修复此问题涉及原生部分,需要重新打包。

5.1.0 以上的版本增加了如下的优化:

  1. 在项目中图片较多时,Android 更新速度大幅提升,达到和 iOS 基本一致的更新速度。
  2. Android 的更新移到了单独的线程,避免更新过程对 AsyncStorage 等原生异步模块的影响。
  3. Android 的.so 文件长时间没有任何改动,因而加入了预编译好的文件,避免对 ndk 的依赖。

版本

因为 React Native 不同版本代码结构不同,因而请按下面表格对号入座:

| React Native 版本 | react-native-update 版本 | | ----------------- | ------------------------ | | 0.26 及以下 | 1.0.x | | 0.27 - 0.28 | 2.x | | 0.29 - 0.33 | 3.x | | 0.34 - 0.45 | 4.x | | 0.46 及以上 | 5.x |

优势

  1. 命令行工具&网页双端管理,版本发布过程简单便捷,完全可以集成 CI。
  2. 基于 bsdiff 算法创建的超小更新包,通常版本迭代后在 1-10KB 之间,避免数百 KB 的流量消耗。
  3. 支持崩溃回滚,安全可靠。
  4. meta 信息及开放 API,提供更高扩展性。
  5. 跨越多个版本进行更新时,只需要下载一个更新包,不需要逐版本依次更新。

安装与快速入门

请查阅

命令行工具

请查阅文档-命令行工具

API 接口

请查阅文档-API 接口

关于我们

本组件由React Native 中文网独家发布,如有定制需求可以联系我们

关于此插件发现任何问题,可以前往Issues或者中文社区发帖提问。