Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

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 görüntüleme • 2 yıl önce •via X (Twitter)

11 Yorum

brent 🦋 profil fotoğrafı
brent 🦋2 yıl önce

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

brent 🦋 profil fotoğrafı
brent 🦋2 yıl önce

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 🦋 profil fotoğrafı
brent 🦋2 yıl önce

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 🦋 profil fotoğrafı
brent 🦋2 yıl önce

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

Hirbod profil fotoğrafı
Hirbod2 yıl önce

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

Patrik profil fotoğrafı
Patrik2 yıl önce

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

Jamie Birch profil fotoğrafı
Jamie Birch2 yıl önce

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

kushagra agarwal profil fotoğrafı
kushagra agarwal2 yıl önce

@reactnative so cool, thanks for the example

Tomasz Krzyżowski profil fotoğrafı
Tomasz Krzyżowski2 yıl önce

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

Ovidiu Latcu profil fotoğrafı
Ovidiu Latcu2 yıl önce

@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 🦋 profil fotoğrafı
brent 🦋2 yıl önce

@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

Benzer Videolar