-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
The following unchecked properties are needed to complete the ScrollView control integration into RNWCPP.
P1
- snapToInterval
When set, causes the scroll view to stop at multiples of the value ofsnapToInterval.
Not directly supported by ScrollViewer. Can be implemented as snap points (Win 8) on the child of the ScrollViewer. - snapToOffsets
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. - snapToStart ScrollView snapToStart #3065
Use in conjunction withsnapToOffsets. By default, the beginning of the list counts as a snap offset. SetsnapToStartto false to disable this behavior and allow the list to scroll freely between its start and the firstsnapToOffsetsoffset. 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. - snapToEnd ScrollView snapToEnd #3066
Use in conjuction withsnapToOffsets. By default, the end of the list counts as a snap offset. SetsnapToEndto false to disable this behavior and allow the list to scroll freely between its end and the lastsnapToOffsetsoffset. 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. - snapToAlignment
WhensnapToIntervalis set,snapToAlignmentwill 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. - removeClippedSubviews View removeClippedSubviews #3067
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. - keyboardDismissMode ScrollView keyboardDismissMode #3068
Determines whether the keyboard gets dismissed in response to a drag.
Not directly supported by ScrollViewer. Mobile-specific. Could be difficult, needs deep dive. - scrollEnabled
When false, the view cannot be scrolled via touch interaction. The default value is true. Note that the view can always be scrolled by callingscrollTo.
Maps to ScrollViewer.VerticalScrollMode/HorizontalScrollMode (Win 8) - showsHorizontalScrollIndicator
When true, shows a horizontal scroll indicator. The default value is true.
Maps to ScrollViewer.HorizontalScrollBarVisibility (Win 8) - showsVerticalScrollIndicator
When true, shows a vertical scroll indicator. The default value is true.
Maps to ScrollViewer.VerticalScrollBarVisibility (Win 8)
P2
- refreshControl ScrollView refreshControl #3069
A RefreshControl component, used to provide pull-to-refresh functionality for the ScrollView. Only works for vertical ScrollViews (horizontalprop 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. - onMomentumScrollBegin
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. - onMomentumScrollEnd
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. - stickyHeaderIndices ScrollView stickyHeaderIndices #3070
An array of child indices determining which children get docked to the top of the screen when scrolling. For example, passingstickyHeaderIndices={[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
- decelerationRate ScrollView decelerationRate #3071
A floating-point number that determines how quickly the scroll view decelerates after the user lifts their finger.
Not supported by ScrollViewer. - pagingEnabled ScrollView pagingEnabled #3072
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 - keyboardShouldPersistTaps ScrollView keyboardShouldPersistTaps #3073
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
- horizontal
- onScroll
- onScrollBeginDrag
- onScrollEndDrag
- onContentSizeChange
- contentContainerStyle
| Future |
|---|
|
brunolemos and ecreeth