diff --git a/React/Views/RCTScrollView.m b/React/Views/RCTScrollView.m index e3f746fb52f952..6c3f5d519c6269 100644 --- a/React/Views/RCTScrollView.m +++ b/React/Views/RCTScrollView.m @@ -581,7 +581,17 @@ - (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView - (void)scrollViewWillEndDragging:(UIScrollView *)scrollView withVelocity:(CGPoint)velocity targetContentOffset:(inout CGPoint *)targetContentOffset { - [_eventDispatcher sendScrollEventWithType:RCTScrollEventTypeEnd reactTag:self.reactTag scrollView:scrollView userData:nil]; + NSDictionary *userData = @{ + @"velocity": @{ + @"x": @(velocity.x), + @"y": @(velocity.y) + }, + @"targetContentOffset": @{ + @"x": @(targetContentOffset->x), + @"y": @(targetContentOffset->y) + } + }; + [_eventDispatcher sendScrollEventWithType:RCTScrollEventTypeEnd reactTag:self.reactTag scrollView:scrollView userData:userData]; RCT_FORWARD_SCROLL_EVENT(scrollViewWillEndDragging:scrollView withVelocity:velocity targetContentOffset:targetContentOffset); }