Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-view-pager

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-view-pager - npm Package Versions

1

0.5.0-prerelease.3

Diff

Changelog

Source

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.

souporserious
published 0.5.0-prerelease.2 •

Changelog

Source

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.

souporserious
published 0.5.0-prerelease.1 •

Changelog

Source

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

souporserious
published 0.5.0-prerelease •

Changelog

Source

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

souporserious
published 0.0.1 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc