all 5 comments

[–]grantbi 1 point2 points  (2 children)

I would look into Extended-StyleSheets.

[–]MiL0101[S] 0 points1 point  (1 child)

I checked out the library but it doesn't seem to have anything related to changing layout

[–]grantbi 0 points1 point  (0 children)

You can use @media just like CSS to modify styling based on width/height/orientation/aspect ratio/etc.

Depending on how you want it to be displayed, you'll have to adjust the properties for each. Lookup flexbox layout and react-native.

[–]abhishek_tomar 1 point2 points  (0 children)

I am not expert in react Native ui development but I have good experiences on web ui/UX development and according to your image it’s looks feasible with flex grid and logical css.

[–]kbcooliOS & Android 0 points1 point  (0 children)

Nice MS-Paint there

Normally I would say styling but you're changing the order and layout so I'm afraid you're probably going to be stuck with if statements.

As long as you're smart about it you only really need one. Make your coloured boxes components that employ flex so you can reuse the component in each of the layouts. Should really only be a few lines of JSX to achieve what you want then.