2016-11-07 7 views
0

私はこのReactネイティブスワイパーコンポーネントを使用しています:https://github.com/leecade/react-native-swiper#custom-basic-style--contentReact 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> 
+0

あなたが既に持っているコードを投稿してください。 –

+0

@MichaelRadionovが元の投稿に自分のコードを追加しました –

答えて

0

このコンポーネントを使用すると、ドットのスタイルを変更することができます「ドット」という名前の小道具を持っている:

は、ここに私のコードです。

<View style={{ 
     backgroundColor:'rgba(0,0,0,.2)', 
     width: 8, 
     height: 8,  
     borderRadius: 4, 
     marginLeft: 3, 
     marginRight: 3, 
     marginTop: 3, 
     marginBottom: 3,}} 
/> 
関連する問題