Skip to content
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

React Native 0.47, onScroll is not triggered after scrollTo is called with no animation #15563

Closed
naqvitalha opened this issue Aug 19, 2017 · 3 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@naqvitalha
Copy link

Is this a bug report?

Yes.

The repro is simple. Scrolling using scrollTo does not trigger an onScroll event. No log will be printed in given example. However, if animation is enabled it works fine. Is this expected? On older versions of react native if wasn't this way (talking about 0.30.0).

componentDidMount() {
         this._svRef.scrollTo({x:0,y:100});
}
_handleScroll = (e) =>{
         console.log(e);
}
render(){
         return  <ScrollView ref={(x)=>this.svRef = x} onScroll={this._handleScroll}/>
}
@naqvitalha
Copy link
Author

The issue is on Android, working fine in iOS.

@hramos
Copy link
Contributor

hramos commented Aug 23, 2017

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 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!

@hramos hramos closed this as completed Aug 23, 2017
@Manweill
Copy link

I has same issue

@facebook facebook locked as resolved and limited conversation to collaborators Aug 23, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Aug 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

4 participants