react-native-remote-svg icon indicating copy to clipboard operation
react-native-remote-svg copied to clipboard

Color is not changing

Open Zilleabbas10 opened this issue 6 years ago • 5 comments

Hello, thanku for providing library but i want to change color of svg image un react-native. i am trying to change it with fill: '#222' but not working. Please let me know is this library supporting to change color of svg image or not ??

Zilleabbas10 avatar Apr 04 '18 12:04 Zilleabbas10

Hi,

Can you show me how you are using the component and where you are setting fill to '#222'?

seekshiva avatar Apr 07 '18 01:04 seekshiva

@Zilleabbas10 can you provide some info on this?

seekshiva avatar Apr 23 '18 06:04 seekshiva

How can I set icon's color. Like this, but dont work

<Image
 source={{uri:'https://fluent-panda.appspot.com.storage.googleapis.com/dumbbell.svg'}}
 style={{width:20, height:20, borderColor:'red' }}/> 

NgKhanh avatar Jun 04 '18 09:06 NgKhanh

Same problem for me, cannot change the svg color. Tried with color, tintColor, ...

return(
      <View key={"Categorie-"+item.id}
      style={[{backgroundColor:"white", borderRadius:15,
      marginTop:10}]}>
        <TouchableOpacity onPress={()=>this.onViewItems(index)}
          style={{alignItems:"center"}} >
        <ImageSvg
            source={{ uri: item.image }}
            style={{
              width: window.width - 150,
              height: window.width - 150,
              color: 'red',
            }}

          />
          <Text style={styles.titleCat}>{item.slug}</Text>
        </TouchableOpacity>
      </View>
    );

Everything works fine except the filled color.

WaLinke avatar Jun 05 '18 08:06 WaLinke

any updates @seekshiva ??

mustafaskyer avatar Jul 08 '18 15:07 mustafaskyer