ScrollView behind statusbar, but content starts slightly scrolled so its not behind statusbar #856
-
This is iOS only. I am on iOS 10. I posted this question here - https://stackoverflow.com/questions/66666279/prvent-scrollview-positioned-at-top-from-mounting-content-slightly-scrolled-to I created a snack here - https://snack.expo.io/@noitidart/native-navigation-scrollview-content Ill repeat the question from stackoverflow: My code for the screen is this:
On mount, the scrollview starts at the top of the screen, below the status bar, as I expect. However the content is slightly scrolled so the content is not behind the statusbar. I want the content behind the statusbar though. Is there a way to prevent this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi @Noitidart, videounder.header.movYour issue probably comes from this code in core react-native Cheers |
Beta Was this translation helpful? Give feedback.
Hi @Noitidart,
I've run your example on iOS 14 and it works fine.
video
under.header.mov
Your issue probably comes from this code in core react-native
https://github.com/facebook/react-native/blob/master/React/Views/ScrollView/RCTScrollView.m#L290
and there's really nothing we can do about it to make it work <iOS 11.
Cheers