I have an issue with Scrollview: when I add it to my project, the page that I got is split in half, and I have the scrollview with my elements on the upper half and nothing below. I'm using expo(not sure if it is an issue here) Here is what I added:
<View>
<ScrollView style={{ flex: 1 }} contentContainerStyle={{ flexGrow: 1 }}>
Then I had my images, text and video. Can someone help me? I didn't find a similar issue on the web.
CodePudding user response:
Try adding flex:1
to the parent view like
<View style={{flex:1}}>
<ScrollView style={{ flex: 1 }} contentContainerStyle={{ flexGrow: 1 }}>
....
</ScrollView>
</View>