-
Notifications
You must be signed in to change notification settings - Fork 24.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Having a SafeAreaView inside ScrollView breaks scrolling #19658
Comments
Why is your SafeAreaView inside a ScrollView? SAV should wrap your top level view. |
@hramos yes, that would work better, but won't have the expected visuals. The contents wouldn't overflow behind the notification bar, like the first item background. |
Duplicate of #16997 that should not have been closed |
Duplicate of #16997 (needs write access to successfully mark as a dupe). |
I had the same situation, and contentInsetAdjustmentBehavior worked for me
from react-native repo, ScrollView code says:
|
Environment
Description
SafeAreaView
is dynamic, if the first element on a screen is aScrollView
, and has childrenSafeAreaView
s, when the user scrolls down, theSafeAreaView
reduces in height because it's not touching the safe area anymore, which in contrast scrolls the content back up.Steps to Reproduce
Create an example such as
Expected Behavior
Content should scroll normally.
Actual Behavior
When you scroll slowly, the scrolling stutters and the content moves back up. If you scroll fast enough you don't see such a bad effect.
Video:
I'd love to be able to get that information from a different source, such as
Dimensions.get
, so I could apply it here manually.The text was updated successfully, but these errors were encountered: