0.1.0 • Published 8 years ago

react-native-banner v0.1.0

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

Installation

First you need to install react-native-banner:

npm install react-native-banner --save

Usage

import Banner from 'react-native-banner';

<Banner
    banners={this.banners}
    defaultIndex={this.defaultIndex}
    onMomentumScrollEnd={this.onMomentumScrollEnd.bind(this)}
    intent={this.clickListener.bind(this)}
/>

android and ios normal use, For more details, please see example code

the Swiper is from author @xiaoyangchao/ https://github.com/xiaoyangchao/react-native-swiper

(base of https://github.com/leecade/react-native-swiper)

Screenshot

npm.io npm.io

Run example

cd ./example && npm install
react-native run-ios
react-native run-android