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
According to W3C spec (https://www.w3.org/TR/css-scroll-snap-1/), we only need to set scroll-snap-type style to ScrollView element and scroll-snap-align style to child elements. It's more easier with CSS selector as follows:
[data-testid='paging-enable-x'] {
scroll-snap-type: x mandatory;
}
/* internal div is generated by `contentContainer` in `ScrollView#render()` */
[data-testid='paging-enable-x'] >div>div {
scroll-snap-align: start;
}
Currently, I only found style generation from https://github.com/necolas/styleq and React JSX inline style, will it acceptable to involve css selector to archive some native features like pagingEnable / snapToInterval / snapToAlignment ?
The text was updated successfully, but these errors were encountered:
Is there an existing request?
Describe the feature request
pagingEnabled has been implemented #1212 by wrapping original children with pagingEnabledChild style
It only works when children is directly written in ScrollView.
✅
Supported
❌
Unsupported
According to W3C spec (https://www.w3.org/TR/css-scroll-snap-1/), we only need to set
scroll-snap-type
style to ScrollView element andscroll-snap-align
style to child elements. It's more easier with CSS selector as follows:Currently, I only found style generation from
https://github.com/necolas/styleq
and React JSX inline style, will it acceptable to involve css selector to archive some native features likepagingEnable
/snapToInterval
/snapToAlignment
?The text was updated successfully, but these errors were encountered: