React native 如何更改React Native Swiper组件的默认颜色?
我正在使用此React Native Swiper组件: 我无法将点颜色更改为默认蓝色以外的任何颜色。有人知道怎么做吗 这是我的密码:React native 如何更改React Native Swiper组件的默认颜色?,react-native,swiper,React Native,Swiper,我正在使用此React Native Swiper组件: 我无法将点颜色更改为默认蓝色以外的任何颜色。有人知道怎么做吗 这是我的密码: <Swiper style={styles.wrapper} loop={true}> {rows.map(function(obj, index) { return( <View style={styles.main} key={index}> <
<Swiper style={styles.wrapper} loop={true}>
{rows.map(function(obj, index) {
return(
<View style={styles.main} key={index}>
<Image
source={{uri: obj.url}}
style={styles.main} />
</View>)
})}
</Swiper>
{rows.map(函数(obj,索引){
返回(
)
})}
此组件有一个名为“点”的道具,您可以更改点的样式
<View style={{
backgroundColor:'rgba(0,0,0,.2)',
width: 8,
height: 8,
borderRadius: 4,
marginLeft: 3,
marginRight: 3,
marginTop: 3,
marginBottom: 3,}}
/>