Skip to content

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

Description

@naqvitalha

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}/>
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions