mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
RN: Update ViewConfig for ScrollView
Summary: Updates `ReactScrollViewManager` and the `ViewConfig` for `ScrollView` so that they are equivalent. - `inverted` was missing. - `contentOffset` was missing differ on Android. (However, there does not seem to be any perceivable behavior difference besides the native `ViewConfig` being different.) Changelog: [Internal] Reviewed By: JoshuaGross Differential Revision: D25084470 fbshipit-source-id: 8bea3b7a692c1038819a4147b174583a4faa71e9
This commit is contained in:
committed by
Facebook GitHub Bot
parent
de92e7405d
commit
f6b8736b09
+1
-1
@@ -305,7 +305,7 @@ public class ReactScrollViewManager extends ViewGroupManager<ReactScrollView>
|
||||
}
|
||||
}
|
||||
|
||||
@ReactProp(name = "contentOffset")
|
||||
@ReactProp(name = "contentOffset", customType = "Point")
|
||||
public void setContentOffset(ReactScrollView view, ReadableMap value) {
|
||||
if (value != null) {
|
||||
double x = value.hasKey("x") ? value.getDouble("x") : 0;
|
||||
|
||||
Reference in New Issue
Block a user