I'm having trouble setting my ScrollView to extend to the status bar area .
for example
return (
<View style={{flex:1}}>
<ScrollView style={{flex:1}}>
<Text>Random Text</Text>
</ScrollView>
</View>
);
returns this for me , which bascially set the text right below the status bar area .
Current results
I was hopping to actually have it look like this.
How can I got about achieving this ?
thank you in advance
Adding
contentInsetAdjustmentBehavior="never"
to ScrollView does it.
return (
<View style={{flex:1}}>
<ScrollView
contentInsetAdjustmentBehavior="never"
style={{flex:1}}>
<Text>Random Text</Text>
</ScrollView>
</View>
)
https://github.com/wix/react-native-navigation/issues/3821
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With