Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

Here is a patch to test CSS grid in React native.

68,544 görüntüleme • 10 ay önce •via X (Twitter)

18 Yorum

Kacper Kapuściak profil fotoğrafı
Kacper Kapuściak10 ay önce

I wanted grid in RN for so long that I lost hope years ago accepted the fate that it’s just not possible but you did it you gave us hope again

nishan (o^▽^o) profil fotoğrafı
nishan (o^▽^o)10 ay önce

Thanks Kacper. Big thanks to Expo ♥️, i had enough time to work on it properly.

AGK (Ejike) profil fotoğrafı
AGK (Ejike)10 ay önce

will these work on tailwind classes now?

nishan (o^▽^o) profil fotoğrafı
nishan (o^▽^o)10 ay önce

Yup!

AGK (Ejike) profil fotoğrafı
AGK (Ejike)10 ay önce

Great, please media queries next 🥲🤝. Thank you in advance

ehsan profil fotoğrafı
ehsan10 ay önce

LFG

Michał Pierzchała profil fotoğrafı
Michał Pierzchała10 ay önce

LFG!

Hirvesh profil fotoğrafı
Hirvesh10 ay önce

So so amazing! Thanks Nishan! 👌

Ashuuu🧚‍♀️ profil fotoğrafı
Ashuuu🧚‍♀️10 ay önce

👍🏻

Neha Sharma profil fotoğrafı
Neha Sharma10 ay önce

Looks amazing 🤩

niya profil fotoğrafı
niya10 ay önce

great job Nishan! Thank you!

nishan (o^▽^o) profil fotoğrafı
nishan (o^▽^o)10 ay önce

🙏

alexeevayaan profil fotoğrafı
alexeevayaan10 ay önce

😍😍

Giorgio Bertolotti profil fotoğrafı
Giorgio Bertolotti10 ay önce

hell yeah, finally, great job! 😍

Flingex profil fotoğrafı
Flingex10 ay önce

What kind of use cases could grid bring into react native?

nishan (o^▽^o) profil fotoğrafı
nishan (o^▽^o)10 ay önce

e.g. consider this simple card layout. With flexbox you can think of it as: <Column> <Row spaceBetween><Icon /><Logo /></Row> <CardNumber /> <Row spaceBetween><Name /><Expiry /></Row> </Column> requires 8 views. With grid, you can declare the layout upfront with grid column/row properties and have a single parent with 5 children. It will require 6 views. <Container> <Icon /> <Logo /> <CardNumber /> <Name /> <Expiry /> </Container> It requires fewer wrapper views when building 2 dimensional layouts, it is like flex wrap with more controls. It is a complementary system to flexbox, but no need to use it everywhere! It becomes much more intuitive for desktop layout. e.g. In X's layout i'd use grid for the main layout, the hierarchy will be more flat and easy to move things around. There could be more usecases like this one -

Flingex profil fotoğrafı
Flingex10 ay önce

Thank you so much actually makes sense now

Damiano Collu profil fotoğrafı
Damiano Collu7 ay önce

Hey @nishanbende is this something that will be included into the main React Native repo?

Benzer Videolar