Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

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

68,544 Aufrufe • vor 10 Monaten •via X (Twitter)

18 Kommentare

Profilbild von Kacper Kapuściak
Kacper Kapuściakvor 10 Monaten

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

Profilbild von nishan (o^▽^o)
nishan (o^▽^o)vor 10 Monaten

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

Profilbild von AGK (Ejike)
AGK (Ejike)vor 10 Monaten

will these work on tailwind classes now?

Profilbild von nishan (o^▽^o)
nishan (o^▽^o)vor 10 Monaten

Yup!

Profilbild von AGK (Ejike)
AGK (Ejike)vor 10 Monaten

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

Profilbild von ehsan
ehsanvor 10 Monaten

LFG

Profilbild von Michał Pierzchała
Michał Pierzchałavor 10 Monaten

LFG!

Profilbild von Hirvesh
Hirveshvor 10 Monaten

So so amazing! Thanks Nishan! 👌

Profilbild von Ashuuu🧚‍♀️
Ashuuu🧚‍♀️vor 10 Monaten

👍🏻

Profilbild von Neha Sharma
Neha Sharmavor 10 Monaten

Looks amazing 🤩

Profilbild von niya
niyavor 10 Monaten

great job Nishan! Thank you!

Profilbild von nishan (o^▽^o)
nishan (o^▽^o)vor 10 Monaten

🙏

Profilbild von alexeevayaan
alexeevayaanvor 10 Monaten

😍😍

Profilbild von Giorgio Bertolotti
Giorgio Bertolottivor 10 Monaten

hell yeah, finally, great job! 😍

Profilbild von Flingex
Flingexvor 10 Monaten

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

Profilbild von nishan (o^▽^o)
nishan (o^▽^o)vor 10 Monaten

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 -

Profilbild von Flingex
Flingexvor 10 Monaten

Thank you so much actually makes sense now

Profilbild von Damiano Collu
Damiano Colluvor 7 Monaten

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

Ähnliche Videos