react-native-swiper-split

1.4.11 • Public • Published

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

Prop Default Type Description
decreasePage 0 number decrease pixels from child swiper.
pageSplit 1 number how 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.

/react-native-swiper-split/

    Package Sidebar

    Install

    npm i react-native-swiper-split

    Weekly Downloads

    7

    Version

    1.4.11

    License

    ISC

    Last publish

    Collaborators

    • ami_moonsite