-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Fix: Avoid contentInsets overwrites scrollIndicatorInsets on iOS #13025 #17399
Conversation
…book#13025 Fix to avoid contentInsets always overwrites scrollIndicatorInsets of ScrollView/ListView. According to issue facebook#13025 https://github.com/facebook/react-native/blob/a8391bde7d757d01521a6d12170fb9090c17a6a0/React/Views/RCTView.m#L299 always overide `scrollIndicatorInsets` when called and only works when `contentInsets` is not set. We only need to worry about when `contentInsets` is set, We only have to check and reset it after `autoAdjustInsetsForView` is called.
@facebook-github-bot label Android Generated by 🚫 dangerJS |
@hramos Hi there! Are these changes allowed? |
@timotew do you have a test plan? |
@hramos my team has been using this branch every since. |
this is definitely a bug (I repro'd it on https://snack.expo.io/S1eOAIRrM -- |
@brentvatne that was my initial approach but I was considering the effects on other components that make use of |
@timotew - I see. I'm also concerned because |
@brentvatne yes. I did this before the pull as you can see I had to |
@timotew I tried to find reviewers for this pull request and wanted to ping them to take another look. However, based on the blame information for the files in this pull request I couldn't find any reviewers. This sometimes happens when the files in the pull request are new or don't exist on master anymore. Is this pull request still relevant? If yes could you please rebase? In case you know who has context on this code feel free to mention them in a comment (one person is fine). Thanks for reading and hope you will continue contributing to the project. |
Fix to avoid contentInsets always overwrites scrollIndicatorInsets of ScrollView/ListView.
According to issue #13025
react-native/React/Views/RCTView.m
Line 299 in a8391bd
always overide
scrollIndicatorInsets
when called and only works whencontentInsets
is not set.We only need to worry about when
contentInsets
is set, We only have to check and reset it afterautoAdjustInsetsForView
is called.Motivation
Fix: #13025
Test Plan
Related PRs
(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/facebook/react-native-website, and link to your PR here.)
Release Notes