-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
[ScrollView] scroll to Top leaves unnecessary white space #16114
Comments
This issue have been fixed on latest version of react-native, see here: 1954438#diff-973dcd0e3fbfcc5e35485bb6404a2fd2 You can either upgrade, or patch the code library component if you can't upgrade. |
@facebook-github-bot no-template |
Hey, thanks for reporting this issue! It looks like your description is missing some necessary information, or the list of reproduction steps is not complete. Can you please add all the details specified in the Issue Template? This is necessary for people to be able to understand and reproduce the issue being reported. I am going to close this, but feel free to open a new issue with the additional information provided. Thanks! See "What to Expect from Maintainers" to learn more. |
I'm trying to scroll to the top of my scrollView on the click of an item at it's bottom. But what's happening is that, on doing this, it leaves random white space at the top of my scrollview. Basically, pushes my other content down.
`<ScrollView
ref={(c) => {
this.content = c;
}}
alwaysBounceVertical={false}
bounces={false}
automaticallyAdjustContentInsets={false}
onScroll={this.handleScroll}
>
{....content}
// On bottom component click,
this.content.scrollTo({ y: 0, x: 0, animated: true });
`
Here are the screen shots -
Expected Behaviour
Actual Behaviour
Environment
Environment:
OS: macOS Sierra 10.12.6
Xcode: 9.0 (9A235)
Packages: (installed)
react-native: 0.45.1
react: 16.0.0-alpha.12
Target Platform: iOS (11)
The text was updated successfully, but these errors were encountered: