0.0.9 • Published 5 years ago

@azangru/react-view-pager v0.0.9

Weekly downloads
43
License
ISC
Repository
github
Last release
5 years ago

React-View-Pager

Summary

This is a slider/carousel/view-pager for React. It is based on the model developed by Travis Arnold in his react-view-pager, with the following differences:

  • It is updated for use with the latest version of React: it uses the new React Context, and replaces deprecated methods (such as findDOMNode) with up-to-date equivalents.
  • It has fixed bugs that appear when using React 16 (such as empty slides in an infinite carousel).
  • Instead of react-motion, it is based on react-spring.

Currently, the functionality of this version of react-view-pager is more limited than of the original view-pager it was modeled on.

See the demo.

Installation

npm install --save react react-dom react-spring @azangru/react-view-pager

Usage

import { ViewPager, Frame, Track, View } from '@azangru/react-view-pager';

<ViewPager>
  <Frame>
    <Track>
      <View>1</View>
      <View>2</View>
      {/* and other views (slides) you want to have in the carousel */}
    </Track>
  </Frame>
</ViewPager>

(see code example)

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago