react native 轮播组件 react-native-ezswiper
安装
npm install react-native-ezswiper --save
使用
import EZSwiper from 'react-native-ezswiper'; <EZSwiper style={{width: width,height: 150,backgroundColor: 'white'}} dataSource={['0', '1' ,'2','3']} width={ width } height={150 } renderRow={this.renderRow} onPress={this.onPressRow} />
卡片轮播
<EZSwiper style={{width: width,height: 150,backgroundColor: 'white'}}
dataSource={images}
width={ width }
height={150 }
renderRow={this.renderImageRow}
onPress={this.onPressRow}
ratio={0.867}
/>
竖向轮播
<EZSwiper style={{width: width,height: 200,backgroundColor: 'white'}}
dataSource={['0', '1' ,'2','3']}
width={ width }
height={200 }
renderRow={this.renderRow}
onPress={this.onPressRow}
ratio={0.867}
horizontal={false}
/>

浙公网安备 33010602011771号