Skip to content

fanruliang/react-native-banner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

react-native-banner

banner轮播图

Usage

<Banner
  containerStyle={{borderRadius:8,overflow:'hidden'}}
  autoplay={true}
  autoplayTimeout={5}
  dot={
     <View style={{ height: scaleSize(8), width: scaleSize(8), borderRadius: scaleSize(4), backgroundColor:'#fff', marginLeft: scaleSize(8), marginRight: scaleSize(8) }}></View>
     }
  activeDot={
     <View style={{ height: scaleSize(8), width: scaleSize(16), borderRadius: scaleSize(4), backgroundColor: "#fff",  marginLeft: scaleSize(8), marginRight: scaleSize(8) }}></View>
      }>
   <Image source={require('../../image/banner.png')}/>
   <Image source={require('../../image/banner2.png')}/>
   <Image source={require('../../image/banner3.png')}/>
   </Banner>

About

banner轮播图

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published