Home

Awesome

react-native-view-pager

A ListView backed ViewPager component for react-native apps. More flexible than ViewPagerAndroid.

Install

npm install --save @ldn0x7dc/react-native-view-pager@latest

The private scope @ldn0x7dc exists because this name has already been taken.

Documentation

import ViewPager from '@ldn0x7dc/react-native-view-pager';
...
render() {
    return (
      <ViewPager
        style={{flex: 1}}
        renderPage={(pageData, pageId, layout) => {}}
        pageDataArray={['your', 'data', 'array']}
      />
    );
  }

Props

Most of the props mimics those of ViewPagerAndroid. But differences exist.

Methods