Loading video...
Video Failed to Load
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 views • 2 years ago •via X (Twitter)
11 Comments

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

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

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

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

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

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

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

@reactnative so cool, thanks for the example

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

@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.

@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

