1.4.11 • Published 8 years ago

react-native-swiper-split v1.4.11

Weekly downloads
2
License
ISC
Repository
github
Last release
8 years ago

react-native-swiper-split

logo

The best Swiper component for React Native.

With Extras


Basic Usage

  • Install react-native first
$ npm i react-native-swiper-split --save

New Properties

PropDefaultTypeDescription
decreasePage0numberdecrease pixels from child swiper.
pageSplit1numberhow many splits you will see on same page.

require 'react-native-swiper-split'

var Swiper = require('react-native-swiper-split')

Just add those properties

var swiper = React.createClass({
  _onMomentumScrollEnd: function (e, state, context) {
    console.log(state, context.state)
  },
  render: function() {
    return (
      <Swiper style={styles.wrapper}
      decreasePage={20}
      pageSplit={2}>
     ...
      </Swiper>
    )
  }
})

Contribution

  • @Amos The main author.
  • @Ziv The secondary contributor.

Questions

Feel free to contact me or create an issue

Inspired by leecade/react-native-swiper.