Skip to content

Commit

Permalink
<ScrollView/>: Add native view config for horizontal
Browse files Browse the repository at this point in the history
Summary:
horizontal was introduced here: D55367445

Changelog: [Internal]

Reviewed By: javache

Differential Revision: D56831754
  • Loading branch information
RSNara authored and facebook-github-bot committed May 2, 2024
1 parent f8525f1 commit 9dae412
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/react-native/ReactAndroid/api/ReactAndroid.api
Original file line number Diff line number Diff line change
Expand Up @@ -6695,6 +6695,7 @@ public class com/facebook/react/views/scroll/ReactHorizontalScrollViewManager :
public fun setDecelerationRate (Lcom/facebook/react/views/scroll/ReactHorizontalScrollView;F)V
public fun setDisableIntervalMomentum (Lcom/facebook/react/views/scroll/ReactHorizontalScrollView;Z)V
public fun setFadingEdgeLength (Lcom/facebook/react/views/scroll/ReactHorizontalScrollView;I)V
public fun setHorizontal (Lcom/facebook/react/views/scroll/ReactHorizontalScrollView;Z)V
public fun setMaintainVisibleContentPosition (Lcom/facebook/react/views/scroll/ReactHorizontalScrollView;Lcom/facebook/react/bridge/ReadableMap;)V
public fun setNestedScrollEnabled (Lcom/facebook/react/views/scroll/ReactHorizontalScrollView;Z)V
public fun setOverScrollMode (Lcom/facebook/react/views/scroll/ReactHorizontalScrollView;Ljava/lang/String;)V
Expand Down Expand Up @@ -6930,6 +6931,7 @@ public class com/facebook/react/views/scroll/ReactScrollViewManager : com/facebo
public fun setDecelerationRate (Lcom/facebook/react/views/scroll/ReactScrollView;F)V
public fun setDisableIntervalMomentum (Lcom/facebook/react/views/scroll/ReactScrollView;Z)V
public fun setFadingEdgeLength (Lcom/facebook/react/views/scroll/ReactScrollView;I)V
public fun setHorizontal (Lcom/facebook/react/views/scroll/ReactScrollView;Z)V
public fun setIsInvertedVirtualizedList (Lcom/facebook/react/views/scroll/ReactScrollView;Z)V
public fun setMaintainVisibleContentPosition (Lcom/facebook/react/views/scroll/ReactScrollView;Lcom/facebook/react/bridge/ReadableMap;)V
public fun setNestedScrollEnabled (Lcom/facebook/react/views/scroll/ReactScrollView;Z)V
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -349,4 +349,9 @@ public void setPointerEvents(ReactHorizontalScrollView view, @Nullable String po
public void setScrollEventThrottle(ReactHorizontalScrollView view, int scrollEventThrottle) {
view.setScrollEventThrottle(scrollEventThrottle);
}

@ReactProp(name = "horizontal")
public void setHorizontal(ReactHorizontalScrollView view, boolean horizontal) {
// Do Nothing: Align with static ViewConfigs
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,11 @@ public void setScrollEventThrottle(ReactScrollView view, int scrollEventThrottle
view.setScrollEventThrottle(scrollEventThrottle);
}

@ReactProp(name = "horizontal")
public void setHorizontal(ReactScrollView view, boolean horizontal) {
// Do Nothing: Align with static ViewConfigs
}

@ReactProp(name = "isInvertedVirtualizedList")
public void setIsInvertedVirtualizedList(ReactScrollView view, boolean applyFix) {
// Usually when inverting the scroll view we are using scaleY: -1 on the list
Expand Down

0 comments on commit 9dae412

Please sign in to comment.