Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6208

React Native content is not going to the next row

$
0
0

I am currently facing a styling issue.

What am I trying to achieve

I want to display a list of movies.

There should be around two or three movies showed per row (depending on the available space on the device).

If the list gets too long, then the user should be able to scroll vertically.

Current situation

The list of movies does not break into the next row.

See for yourself, the picture describes the issue the best

Code that I am using to achieve my goal

<ScrollView style={styles.moviesContainer} contentContainerStyle={{flexDirection: "row"}}>
                    <Movie></Movie>
                    <Movie></Movie>
                    <Movie></Movie>
                    <Movie></Movie>
                    <Movie></Movie>
                    <Movie></Movie>
                </ScrollView>

^ The moviesContainer styling only contains some margins/border.

I hope that someone can help me with this issue, but if there is something unclear, please let me know so I can add it to this question!


Viewing all articles
Browse latest Browse all 6208

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>