Skip navigation
Here is a patch to test CSS grid in React native.
0:00 / 0:25

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

nishan (o^▽^o)

@nishanbende4.2K followers

Visit on X
258 likesDownloadOriginal post

68,579 views

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

18 Comments

Comments from the original post on X (Twitter)

  • Kacper Kapuściak's profile picture

    @kacperkapusciak

    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

    12 likes

  • nishan (o^▽^o)'s profile picture

    @nishanbende

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

    14 likes

  • AGK (Ejike)'s profile picture

    @dom000_dev

    will these work on tailwind classes now?

    5 likes

  • nishan (o^▽^o)'s profile picture

    @nishanbende

    Yup!

    3 likes

  • AGK (Ejike)'s profile picture

    @dom000_dev

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

    1 like

  • ehsan's profile picture

    @byteab

    LFG

    2 likes

  • Michał Pierzchała's profile picture

    @thymikee

    LFG!

    2 likes

  • Hirvesh's profile picture

    @hirvesh

    So so amazing! Thanks Nishan! 👌

    1 like

  • Ashuuu🧚‍♀️'s profile picture

    @ashuuu_soft

    👍🏻

    1 like

  • Neha Sharma's profile picture

    @hellonehha

    Looks amazing 🤩

    1 like

  • niya's profile picture

    @niyabits

    great job Nishan! Thank you!

    1 like

  • nishan (o^▽^o)'s profile picture

    @nishanbende

    🙏

    1 like

  • alexeevayaan's profile picture

    @alexeevayaan

    😍😍

    1 like

  • Giorgio Bertolotti's profile picture

    @GiorgioZem

    hell yeah, finally, great job! 😍

    1 like

  • Flingex's profile picture

    @Flingexx

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

    1 like

  • nishan (o^▽^o)'s profile picture

    @nishanbende

    e.g. consider this simple card layout. With flexbox you can think of it as: 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. 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 -

    5 likes

  • Flingex's profile picture

    @Flingexx

    Thank you so much actually makes sense now

    3 likes

  • Damiano Collu's profile picture

    @thedummyxyz

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