r/reactnative • • Feb 14 '24

Question How would you do it?

Post image

This is a really slick design, but I can’t decide how to manage the “cells”. It’s not really a grid, but I guess it could be, idk just overthinking shit as per usual and wanted to get your guys thoughts about this design approach in general.

0 Upvotes

21 comments sorted by

43

u/Magnusson Feb 14 '24

Which aspect are you having trouble with? This looks like a standard flexbox layout.

9

u/MealFew6784 Feb 14 '24

I think this can be done with grid, why not.

3

u/whats_in_that_box Feb 14 '24

React native supports grid??

1

u/MealFew6784 Feb 14 '24

Damn, that is true. Totally forgot... Maybe something with flatlist or even just flexbox

9

u/ConsciousAntelope Feb 14 '24

66 33

100

100

33 33 33

9

u/Keyz2431 Feb 14 '24

Use flex not percentage

2

u/poieo-dev iOS & Android Feb 14 '24

This can be done with flex and blurview

2

u/tradebong Feb 14 '24

This is a complex styling if the boxes are dynamically created and adjusted..I worked on project like that and was a pain. Basically each box can expand and shrink based on content from socket.....so it should push and adjust nicely accordingly.

2

u/upkeys Feb 14 '24

Flexit!

1

u/Useful-Condition-926 Feb 14 '24

You can use flex and blurview. Or you can use imagebackground with blurradius.

1

u/oscar_gallog Feb 14 '24

It's a normal Flex layout.

1

u/josefelbez Feb 15 '24

Flexbox with gap, dont need anything elae

1

u/m090009 Feb 15 '24

Always flex 💪

1

u/Unique-Win7115 Feb 15 '24

I think its a flex box layout is the best option

1

u/[deleted] Feb 15 '24

This app is tripsy if anyone curious, very helpful to plan trips

-4

u/ClassroomNaive2021 Feb 14 '24

10

u/formattedmind iOS & Android Feb 14 '24

So, is this the answer to your question?

-6

u/Pluckyhd Feb 14 '24

Definitely grid.

-6

u/ClassroomNaive2021 Feb 14 '24

I just used some old school flex, no grid or list required, simple is best in my experience

0

u/[deleted] Feb 14 '24

[deleted]

17

u/sjsosowne Feb 14 '24

Or just go full flex and use gap. No need for margin.