1.
sudo npm install react-native-swiper --save
react-native link react-native-swiper
2. 使用實例:
<Swiper showButton={false} autoplay={true} height={180}>
<View style={styles.slide}>
<Image style={styles.img}
resizeMode='stretch' source={{uri:'http://xxxx/175528.png'}}/>
</View>
<View style={styles.slide}>
<Image style={styles.img}
resizeMode='stretch' source={{uri:'http://xxxxx/155421.png'}}/>
</View>
<View style={styles.slide}>
<Image style={styles.img}
resizeMode='stretch' source={{uri:'http://xxxx/173844.png'}}/>
</View>
</Swiper>
