react-native-banner

react-native-banner

Usage no npm install needed!

<script type="module">
  import reactNativeBanner from 'https://cdn.skypack.dev/react-native-banner';
</script>

README

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