React Native - Why we use the tintColor property for Image component?
Using tintColor
in <Image>
is not working.
Using it in the style
of <Image>
works.
Ref: https://github.com/facebook/react-native/issues/17124
<Image
tintColor='#2d3436'
style={{width: 20, height: 15,margin:10}}
source={{uri: 'backsignup'}}
/>
This works fine for android but not in ios
If you want it to work on ios as well go with this ie. passing tint color with style instead of passing it as a props
<Image
style={{ width: 20,height: 23,margin: 10,tintColor: "#2d3436"}}
source={{ uri: "pdficon" }}
/>