惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Microsoft Security Blog
Microsoft Security Blog
Jina AI
Jina AI
量子位
博客园 - 叶小钗
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
IT之家
IT之家
S
SegmentFault 最新的问题
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
小众软件
小众软件
Hugging Face - Blog
Hugging Face - Blog
雷峰网
雷峰网
博客园 - 聂微东
美团技术团队
Last Week in AI
Last Week in AI
罗磊的独立博客
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 三生石上(FineUI控件)
WordPress大学
WordPress大学
宝玉的分享
宝玉的分享
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园_首页
V
Visual Studio Blog
大猫的无限游戏
大猫的无限游戏
The Cloudflare Blog

HN's home page

Rainbow Query Language | Hacker News Exec into Node via Kubectl An AI native hedge fund The Seven-Action Documentation Model | Hacker News Package Manager for Kubectl Plugins Tongan Castaways | Hacker News Tech overlords plan for conscious AI to conquer the cosmos. What could go wrong? Data Breach Disclosure Lag Is Getting Worse How LLMs Work | Hacker News I Dropped PRDs for Shape Up Go Experiments Explained | Hacker News FCA's Palantir deal could expose UK financial data to Trump's US, critics fear WebXR BCI for Neural-Adaptive Avatar Control in Mixed Reality The first murder conviction via DNA analysis Tom Interviews Theo de Raadt of the OpenBSD Project (2019) [video] Show HN: Replace shell commands with bun shell typescript scripts Quay.io Is Down | Hacker News AI driven analysis of brokerage account fees in the UK Bill Gates Spent Years Crafting His Image. Now It's Cracking Using LLMs to secure source code Wi-Fi 8 in the Lab [video] The household battery revolution that could change energy bills and the world Is Python Becoming Pinyin? | Hacker News Livia – Executive Assistant | Hacker News FindMyPipe – Query Apple Find My from Linux for AI Agents Show HN: Agent skill for creating product launch videos with Remotion RecruitMyself – AI job search copilot for resumes and applications AI coding agents and the erosion of system understanding The 'Resting' Generation and South Korea's Youth Recession AMD Computex 2026: 10 Years of AM4, AM5 Support Through 2029
Show HN: React Native Boost – swaps RN's Text/View wrappe...
mfkrause · 2026-06-23 · via HN's home page

React Native's `<Text>` and `<View>` are JS wrappers around lower-level native components. Under the hood, they handle a lot of edge cases. However, most apps hit those edge cases rarely, and the wrapper's cost (extra work per render, plus an extra fiber) is paid on every component, every commit.

React Native Boost is a Babel plugin that statically analyzes the source code and rewrites `<Text>`/`<View>` into their native counterparts (`NativeText`/`NativeView`) wherever it can prove it's safe. No imports or code changes required. You add the plugin to `babel.config.js` and that's it. Runtime overhead is effectively zero.

Safety is the hard part, so most of the work is in the bailout logic: each element is only rewritten if it passes every check (blacklisted props, structural conditions, ancestor analysis, and a lot more). There's a differential parity test & fuzzing harness that compares Boost's compiled output to what the JS wrapper components would produce and asserts they are equal.

Honest disclaimer: RN core is trying to make this superfluous. RN 0.78 (with React 19) shrank the initial-mount advantage considerably, and 0.82 added a `reduceDefaultPropsInText` flag (default since 0.85) explicitly aimed at this overhead. The RN team's stated goal is to make these wrappers cheap enough that using the underlying native components like this is unnecessary. Where it still pays off today is re-render-heavy screens. On a constantly-benchmark constantly updating a lot of `<Text>`, stock RN drops to ~32 FPS at the heaviest load while Boost holds 60, ~69% faster on iOS and ~55% on Android. As RN lands more of these optimizations I expect that gap to close, and the benchmark is built to track exactly that.

Repo: https://github.com/kuatsu/react-native-boost Benchmarks + methodology: https://react-native-boost.oss.kuatsu.de/docs/information/be...

Feedback genuinely welcome!