Skip to content

Commit 3a0ed2e

Browse files
sammy-SCfacebook-github-bot
authored andcommitted
Implement zoom in ScrollView
Summary: changelog: [internal] Reviewed By: JoshuaGross Differential Revision: D24991161 fbshipit-source-id: 6f36cc21b89554006a744da8d32349ff21ccd68f
1 parent 2669118 commit 3a0ed2e

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.mm

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,12 @@ - (void)scrollViewDidEndZooming:(UIScrollView *)scrollView withView:(nullable UI
452452
[self _updateStateWithContentOffset];
453453
}
454454

455-
#pragma mark - UIScrollViewDelegate
455+
- (UIView *)viewForZoomingInScrollView:(__unused UIScrollView *)scrollView
456+
{
457+
return _containerView;
458+
}
459+
460+
#pragma mark -
456461

457462
- (void)_forceDispatchNextScrollEvent
458463
{

0 commit comments

Comments
 (0)