seekshiva / react-native-remote-svg

Adds support for loading svg images in React Native
MIT License
184 stars 71 forks source link

style property tintColor is not working #5

Open rajeshrthl opened 6 years ago

rajeshrthl commented 6 years ago

I want to set tintColor for active items in my project. Its not working with this library.

Can you tell me if there is an alternative to tintColor in your library

"tintColor: color Changes the color of all the non-transparent pixels to the tintColor."

seekshiva commented 6 years ago

For now, you may have to wrap the image with a View like:

<View style={{ backgroundColor: tintColor }}>
 <Image source={{ uri: 'https://some/source.svg' }} />
</View>

I will let you know when tintColor support is added to this library.

PurnimaNaik commented 5 years ago

Any updates? @seekshiva