Skip to content

支持安卓和ios效果相同的react-native轮播图,实现淘宝详情页banner的效果。

Notifications You must be signed in to change notification settings

ThenMorning/react-native-super-swiper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-native-super-swiper

支持安卓和ios效果相同的react-native轮播图,实现淘宝详情页banner的效果。

效果

ios:

android:

install

npm i react-native-super-swiper --s

usage

<ReactNativeSuperSwiper
          onChange={this.onChange}
          isAndroid={false}
          loadMoreOptions={{
            enableLoadMore: true,
            distance: 3,
            initText: "左滑",
            releaseText: "释放",
            onArrive: () => { console.log("到达") },
            onRelease: () => { console.log("释放") },
            renderLoadMoreView: () => { }
          }} 
          onScroll={this.onScroll}
          onBeginDrag={this.onBeginDrag.bind(this)} 
          onEndDrag={this.onEndDrag.bind(this)}>
          {this.state.swiperContent}
        </ReactNativeSuperSwiper>

About

支持安卓和ios效果相同的react-native轮播图,实现淘宝详情页banner的效果。

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published