mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Back out "[react-native][PR] [Android] Implement fading edges for ScrollView and it's dependent FlatList"
Summary: After some thought, we decided we don't need the flexibility of separate horizontal and vertical props - it would be much nicer to just have a single prop for the edge length and then the native code can enable the booleans as appropriate. Original PR: https://github.com/facebook/react-native/pull/26163 Original commit changeset: f72a9a890d90 Reviewed By: TheSavior Differential Revision: D16997468 fbshipit-source-id: 7973262287a7ec2cee5957f8dc1806a0f28c1432
This commit is contained in:
committed by
Facebook Github Bot
parent
f8dff0bcb3
commit
8e04a1485f
-10
@@ -276,14 +276,4 @@ public class ReactHorizontalScrollViewManager extends ViewGroupManager<ReactHori
|
||||
public void setPersistentScrollbar(ReactHorizontalScrollView view, boolean value) {
|
||||
view.setScrollbarFadingEnabled(!value);
|
||||
}
|
||||
|
||||
@ReactProp(name = "horizontalFadingEdgesEnabled")
|
||||
public void setHorizontalFadingEdgesEnabled(ReactHorizontalScrollView view, boolean value) {
|
||||
view.setHorizontalFadingEdgeEnabled(value);
|
||||
}
|
||||
|
||||
@ReactProp(name = "fadingEdgeLength")
|
||||
public void setFadingEdgeLength(ReactHorizontalScrollView view, int value) {
|
||||
view.setFadingEdgeLength(value);
|
||||
}
|
||||
}
|
||||
|
||||
-10
@@ -278,16 +278,6 @@ public class ReactScrollViewManager extends ViewGroupManager<ReactScrollView>
|
||||
view.setScrollbarFadingEnabled(!value);
|
||||
}
|
||||
|
||||
@ReactProp(name = "verticalFadingEdgesEnabled")
|
||||
public void setVerticalFadingEdgesEnabled(ReactScrollView view, boolean value) {
|
||||
view.setVerticalFadingEdgeEnabled(value);
|
||||
}
|
||||
|
||||
@ReactProp(name = "fadingEdgeLength")
|
||||
public void setFadingEdgeLength(ReactScrollView view, int value) {
|
||||
view.setFadingEdgeLength(value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public @Nullable Map<String, Object> getExportedCustomDirectEventTypeConstants() {
|
||||
return createExportedCustomDirectEventTypeConstants();
|
||||
|
||||
Reference in New Issue
Block a user