React-native – How to stretch ScrollView to the entire screen in this machine?

I have this code

render() {
return (



{array_with_two_items.map(this.createRow)}


)
}

With style

scrollView: {
flex: 1,
marginBottom:0,
},
containter: {
flex:1,
},

And the problem is that it looks Like this

+-----------+
| MENU |
+--------- --+
| item1 |
+-----------+
| item2 |
+----------- +
| |
| blank |
| not |
| scrollable|
+-----------+

< p>But I want it to look like

+-----------+
| MENU |
+-- ---------+
| item1 |
+-----------+
| item2 |
+---- -------+
| blank,but |
| still |
| part of |
| scrollview|
+------ -----+

I have almost no styling and flexbox Experience, so this is why I am asking. (The menu should not be part of the scrollview)

Just provide the prop contentContainerStyle to ScrollView, such as:

 contentContainerStyle={{
flex: 1
} }
>
/* Other Stuff */

I have this code

render() {
return (



{array_with_two_items.map(this.createRow)}


)
}

and style

scrollView: {
flex:1,
marginBottom:0,
},
containter: {
flex:1,
},

And the problem is that it looks like this

+----- ------+
| MENU |
+-----------+
| item1 |
+------- ----+
| item2 |
+-----------+
| |
| blank |
| not |< br />| scrollable|
+-----------+

But I want it to look like

+-----------+
| MENU |
+--- --------+
| item1 |
+-----------+
| item2 |
+----- ------+
| blank,but |
| still |
| part of |
| scrollview|
+------- ----+

I have almost no experience with styling and flexbox, so this is why I am asking. (The menu should not be part of the scrollview)

Just provide the prop contentContainerStyle to ScrollView, such as:

 contentContainerStyle={{
flex : 1
})
>
/* Other Stuff */

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 5924 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.