You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(scrollview)!: add CSS scroll on ScrollView (#146)
* refactor(scrollview): move scrollview to its own directory
* refactor(scrollview): extract pointer logic out of ScrollView
* feat(ScrollView): add CSS scrolling for scroll view
* chore(example): remove align self stretch from box
* chore(example): allow to pass style to box
* refactor(scrollview): split into subdirectories
* test(scrollview): add test for custom scroll view
* chore(example): use css scroll everywhere
* feat(scrollview)!: make css the default scrollview
* docs(scrollview): add doc
|`horizontal`|`boolean`|`false`| Determines if the scrolling orientation is horizontal. If `false`, the scrolling orientation will be vertical. |
138
-
|`offsetFromStart`|`number`|`0`| This offset is used to prevent the element from sticking too closely to the edges of the screen during scrolling. This is a margin in pixels. |
139
-
|`style`|`ViewStyle`|`null`| Style for the ScrollView. This can be any valid React Native style object. |
140
-
|`children`|`ReactNode`|`null`| Child elements of the component. They are expected to be one or multiple `SpatialNavigationNode` elements. |
141
-
|`ascendingArrow`|`ReactElement`|`null`| For web TVs cursor handling. Optional component to display as the arrow to scroll on the ascending order. |
142
-
|`ascendingArrowContainerStyle`|`ViewStyle`|`null`| For web TVs cursor handling. Style of the view which wraps the ascending arrow. Hover this view will trigger the scroll. |
143
-
|`descendingArrow`|`ReactElement`|`null`| For web TVs cursor handling. Optional component to display as the arrow to scroll on the descending order. |
144
-
|`descendingArrowContainerStyle`|`ViewStyle`|`null`| For web TVs cursor handling. Style of the view which wraps the descending arrow. Hover this view will trigger the scroll. |
145
-
|`pointerScrollSpeed`|`number`|`10`| For web TVs cursor handling. Speed of the pointer scroll. It represents the number of pixels scrolled every 10ms when hovering a scroll arrow with a pointer. |
|`horizontal`|`boolean`|`false`| Determines if the scrolling orientation is horizontal. If `false`, the scrolling orientation will be vertical. |
138
+
|`offsetFromStart`|`number`|`0`| This offset is used to prevent the element from sticking too closely to the edges of the screen during scrolling. This is a margin in pixels. |
139
+
|`style`|`ViewStyle`|`null`| Style for the ScrollView. This can be any valid React Native style object. |
140
+
|`children`|`ReactNode`|`null`| Child elements of the component. They are expected to be one or multiple `SpatialNavigationNode` elements. |
141
+
|`ascendingArrow`|`ReactElement`|`null`| For web TVs cursor handling. Optional component to display as the arrow to scroll on the ascending order. |
142
+
|`ascendingArrowContainerStyle`|`ViewStyle`|`null`| For web TVs cursor handling. Style of the view which wraps the ascending arrow. Hover this view will trigger the scroll. |
143
+
|`descendingArrow`|`ReactElement`|`null`| For web TVs cursor handling. Optional component to display as the arrow to scroll on the descending order. |
144
+
|`descendingArrowContainerStyle`|`ViewStyle`|`null`| For web TVs cursor handling. Style of the view which wraps the descending arrow. Hover this view will trigger the scroll. |
145
+
|`pointerScrollSpeed`|`number`|`10`| For web TVs cursor handling. Speed of the pointer scroll. It represents the number of pixels scrolled every 10ms when hovering a scroll arrow with a pointer. |
146
+
|`useNativeScroll`|`boolean`|`false`| Not recommended. Setting this to true disables the use of CSS scroll. It will scroll using the native ScrollView from React Native. CSS scrolling should be snappier and smoother. |
0 commit comments