Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/backbone.js/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
React native 如何更改React Native Swiper组件的默认颜色?_React Native_Swiper - Fatal编程技术网

React native 如何更改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}> <

我正在使用此React Native Swiper组件:

我无法将点颜色更改为默认蓝色以外的任何颜色。有人知道怎么做吗

这是我的密码:

<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,}} 
/>