mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-28 16:34:49 +08:00
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:
committed by
Facebook Github Bot
parent
b3a07685f2
commit
5eac8ca9b0
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user