Skip to content

miao1qaz/react-native-banner

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Run example

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

About

android and ios normal use, but also a viewpage

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 72.2%
  • Objective-C 18.3%
  • Python 5.8%
  • Java 3.7%