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

推荐订阅源

J
Java Code Geeks
Engineering at Meta
Engineering at Meta
GbyAI
GbyAI
MongoDB | Blog
MongoDB | Blog
Blog — PlanetScale
Blog — PlanetScale
腾讯CDC
U
Unit 42
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Apple Machine Learning Research
Apple Machine Learning Research
M
MIT News - Artificial intelligence
人人都是产品经理
人人都是产品经理
Hugging Face - Blog
Hugging Face - Blog
MyScale Blog
MyScale Blog
小众软件
小众软件
博客园 - 三生石上(FineUI控件)
N
Netflix TechBlog - Medium
阮一峰的网络日志
阮一峰的网络日志
博客园 - Franky
Recent Announcements
Recent Announcements
A
About on SuperTechFans
Stack Overflow Blog
Stack Overflow Blog
The GitHub Blog
The GitHub Blog
D
Docker
H
Hackread – Cybersecurity News, Data Breaches, AI and More

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!