Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Color is not changing #12

Open
Zilleabbas10 opened this issue Apr 4, 2018 · 5 comments
Open

Color is not changing #12

Zilleabbas10 opened this issue Apr 4, 2018 · 5 comments

Comments

@Zilleabbas10
Copy link

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 ??

@seekshiva
Copy link
Owner

Hi,

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

@seekshiva
Copy link
Owner

@Zilleabbas10 can you provide some info on this?

@NgKhanh
Copy link

NgKhanh commented Jun 4, 2018

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

@WaLinke
Copy link

WaLinke commented Jun 5, 2018

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.

@mustafaskyer
Copy link

mustafaskyer commented Jul 8, 2018

any updates @seekshiva ??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants