Migrate VirtualizedList to use ref.measureLayout

Summary: This diff migrates VirtualizedList to use ref.measureLayout instead of UIManager.measureLayout, this is a pre-req to make measureLayout to work in Fabric

Reviewed By: JoshuaGross, TheSavior

Differential Revision: D14865762

fbshipit-source-id: 45dd3374813370188c914acfc7e631075508f74a
This commit is contained in:
David Vacca
2019-04-30 15:01:40 -07:00
committed by Facebook Github Bot
parent b3a07685f2
commit 5eac8ca9b0
2 changed files with 28 additions and 9 deletions

View File

@@ -730,6 +730,10 @@ class ScrollView extends React.Component<Props, State> {
return ReactNative.findNodeHandle(this._innerViewRef);
}
getNativeScrollRef(): ?ScrollView {
return this._scrollViewRef;
}
/**
* Scrolls to a given x, y offset, either immediately or with a smooth animation.
*