-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document ScrollView API completion #2113
Comments
I have a pull request to implement just the snapToInterval and the snapToAlignment to be used by the Universal outlook team. |
@kikisaints I've broken all the individual items of pending work here out into a Project board: https://github.com/microsoft/react-native-windows/projects/17 |
All missing APIs are tracked with issues or on the board. We have no immediate plans to create formal per-method API parity documentation, so closing this issue. |
The following unchecked properties are needed to complete the ScrollView control integration into RNWCPP.
P1
When set, causes the scroll view to stop at multiples of the value of
snapToInterval
.Not directly supported by ScrollViewer. Can be implemented as snap points (Win 8) on the child of the ScrollViewer.
When set, causes the scroll view to stop at the defined offsets.
Not directly supported by ScrollViewer. Can be implemented as snap points (Win 8) on the child of the ScrollViewer.
Use in conjunction with
snapToOffsets
. By default, the beginning of the list counts as a snap offset. SetsnapToStart
to false to disable this behavior and allow the list to scroll freely between its start and the firstsnapToOffsets
offset. The default value is true.Not directly supported by ScrollViewer. Can be implemented in conjunction with adding snap points (Win 8) to the child of the ScrollViewer.
Use in conjuction with
snapToOffsets
. By default, the end of the list counts as a snap offset. SetsnapToEnd
to false to disable this behavior and allow the list to scroll freely between its end and the lastsnapToOffsets
offset. The default value is true.Not directly supported by ScrollViewer. Can be implemented in conjunction with adding snap points (Win 8) to the child of the ScrollViewer.
When
snapToInterval
is set,snapToAlignment
will define the relationship of the snapping to the scroll view.Not directly supported by ScrollViewer. Can be implemented in conjunction with adding snap points (Win 8) to the child of the ScrollViewer.
Experimental: When true, offscreen child views (whose overflow value is hidden) are removed from their native backing superview when offscreen. This can improve scrolling performance on long lists. The default value is true.
Not directly supported by ScrollViewer. Seems difficult. Needs deep dive.
Determines whether the keyboard gets dismissed in response to a drag.
Not directly supported by ScrollViewer. Mobile-specific. Could be difficult, needs deep dive.
When false, the view cannot be scrolled via touch interaction. The default value is true. Note that the view can always be scrolled by calling
scrollTo
.Maps to ScrollViewer.VerticalScrollMode/HorizontalScrollMode (Win 8)
When true, shows a horizontal scroll indicator. The default value is true.
Maps to ScrollViewer.HorizontalScrollBarVisibility (Win 8)
When true, shows a vertical scroll indicator. The default value is true.
Maps to ScrollViewer.VerticalScrollBarVisibility (Win 8)
P2
A RefreshControl component, used to provide pull-to-refresh functionality for the ScrollView. Only works for vertical ScrollViews (
horizontal
prop must befalse
).Not directly supported by ScrollViewer. Could maybe use RefreshContainer from MUX (RS4), or drop down to InteractionTracker (RS1) and build one from scratch.
Called when the momentum scroll starts (scroll which occurs as the ScrollView glides to a stop).
Not directly supported by ScrollViewer. Could hook up to ViewChanging and look at ScrollViewerChangingEventArgs.IsInertial.
Called when the momentum scroll ends (scroll which occurs as the ScrollView glides to a stop).
Not directly supported by ScrollViewer. Could hook up to ViewChanging/ViewChanged and look at ScrollViewerChangingEventArgs.IsInertial.
An array of child indices determining which children get docked to the top of the screen when scrolling. For example, passing
stickyHeaderIndices={[0]}
will cause the first child to be fixed to the top of the scroll view. This property is not supported in conjunction withhorizontal={true}
.Not directly supported by ScrollViewer. Seems difficult. Needs deep dive.
P3
A floating-point number that determines how quickly the scroll view decelerates after the user lifts their finger.
Not supported by ScrollViewer.
When true, the scroll view stops on multiples of the scroll view's size when scrolling. This can be used for horizontal pagination. The default value is false.
Not directly supported by ScrollViewer. Can be implemented by adding snap points (Win 8) to the child of the ScrollViewer
Determines when the keyboard should stay visible after a tap.
Not directly supported by ScrollViewer. Mobile-specific. Could be difficult, needs deep dive.
Already Completed
The text was updated successfully, but these errors were encountered: