Loading video...

Video Failed to Load

Go Home

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

brent 🦋's profile picture
brent 🦋2 years ago

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

brent 🦋's profile picture
brent 🦋2 years ago

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 🦋's profile picture
brent 🦋2 years ago

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 🦋's profile picture
brent 🦋2 years ago

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

Hirbod's profile picture
Hirbod2 years ago

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

Patrik's profile picture
Patrik2 years ago

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

Jamie Birch's profile picture
Jamie Birch2 years ago

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

kushagra agarwal's profile picture
kushagra agarwal2 years ago

@reactnative so cool, thanks for the example

Tomasz Krzyżowski's profile picture
Tomasz Krzyżowski2 years ago

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

Ovidiu Latcu's profile picture
Ovidiu Latcu2 years ago

@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 🦋's profile picture
brent 🦋2 years ago

@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

Related Videos