Skip to content

Commit

Permalink
<ScrollView/>: Add native view config for horizontal (facebook#44365)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: facebook#44365

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 3f6f52d commit 02d5913
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
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 02d5913

Please sign in to comment.