react-view-pager
Advanced tools
Changelog
0.5.0-prerelease.3
emit viewChange
when viewsToShow
options have changed
beforeViewChange
-> onViewChange
afterViewChange
-> onRest
Allow autoSize
prop to size width
and/or height
Use verticalAlign: top
on views to keep them in frame when using autoSize
Added mandatory View
component that replaces previous views that were cloned. This will help us keep some control over props that need to be applied.
Changelog
0.5.0-prerelease.2
Fixes updating props after mount
Fixes the indices in callbacks to return proper indices in view
Replaced from
, to
object returned in beforeViewChange
callback with currentIndicies
No more absolute positioning! This is cool because now we can use things like flexbox and not get weird values due to absolute positioned views.
Changelog
0.5.0-prerelease.1
General cleanup
Fixes Avoid call to window in window-less environment #28
Fixes beforeViewChange
being called twice
Fixes onScroll
callback to allow use of setState
Moved main props to the Track
component
Added ViewPager
wrapper component. It was a hard decision to add another component, but this will allow some cool animations and other features.
Added AnimatedView
component to allow animations that are relative to the pager.
Updated animation-bus
to 0.2.0
Changelog
0.5.0-prerelease
Major Update again, sorry for the big changes. This has been a rough road, but I feel it has finally smoothed out and I'm very happy with where everything is at.
Name Change
react-motion-slider
-> react-view-pager
Breaking Changes
Props changed
currentIndex
&& currentKey
-> currentView
slidesToShow
-> viewsToShow
slidesToMove
-> viewsToMove
vertical
-> axis
autoHeight
-> autoSize
Props added
contain
animations
accessibility
onSwipeStart
onSwipeMove
onSwipeEnd
onScroll
beforeViewChange
afterViewChange