正在加载视频...

视频加载失败

i'm playing around with React Native new architecture examples using [email protected] and [email protected], and it's pretty cool to see automatic batching with native event handlers in action.

80,858 次观看 • 2 年前 •via X (Twitter)

11 条评论

brent 🦋 的头像
brent 🦋2 年前

because updates are batched, there are less intermediate states rendered, the renderer does less work, the app feels better.

brent 🦋 的头像
brent 🦋2 年前

i slowed down the rendering by instantiating 1000 date objects for each square that is rendered to simulate something more expensive. otherwise it's the example from the new arch landing page

brent 🦋 的头像
brent 🦋2 年前

it's important to note that this is not to say that the new architecture will suddenly improve performance in your app for free. learn more about what to expect here

brent 🦋 的头像
brent 🦋2 年前

if you think this looks neat then go test your libraries and libraries you use against the new architecture in 0.74-rc!

Hirbod 的头像
Hirbod2 年前

@reactnative I can achieve the same with the old arch Thanks to a neat article by @naqvitalha

Patrik 的头像
Patrik2 年前

@tsapeta @reactnative can’t wait for Expo to support bridgeless mode natively, this looks awesome

Jamie Birch 的头像
Jamie Birch2 年前

@reactnative This unblocks that slider-driven app I was thinking of

kushagra agarwal 的头像
kushagra agarwal2 年前

@reactnative so cool, thanks for the example

Tomasz Krzyżowski 的头像
Tomasz Krzyżowski2 年前

@reactnative Is this batching native events is a react native new thing or just react ?

Ovidiu Latcu 的头像
Ovidiu Latcu2 年前

@reactnative Pretty sick, looking forward to autobatching 💯. But looking at our dependency list, I am not sure the community will be able to adopt at scale the new arch this year. A lot of libs still lack the support.

brent 🦋 的头像
brent 🦋2 年前

@reactnative possibly! i could see this list getting up to 80-90% within a couple months. coverage of libraries not listed there depends on folks in the community mobilizing (pun intended) to test and fix libraries

相关视频