Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

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 Aufrufe • vor 2 Jahren •via X (Twitter)

11 Kommentare

Profilbild von brent 🦋
brent 🦋vor 2 Jahren

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

Profilbild von brent 🦋
brent 🦋vor 2 Jahren

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

Profilbild von brent 🦋
brent 🦋vor 2 Jahren

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

Profilbild von brent 🦋
brent 🦋vor 2 Jahren

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

Profilbild von Hirbod
Hirbodvor 2 Jahren

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

Profilbild von Patrik
Patrikvor 2 Jahren

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

Profilbild von Jamie Birch
Jamie Birchvor 2 Jahren

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

Profilbild von kushagra agarwal
kushagra agarwalvor 2 Jahren

@reactnative so cool, thanks for the example

Profilbild von Tomasz Krzyżowski
Tomasz Krzyżowskivor 2 Jahren

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

Profilbild von Ovidiu Latcu
Ovidiu Latcuvor 2 Jahren

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

Profilbild von brent 🦋
brent 🦋vor 2 Jahren

@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

Ähnliche Videos