- SDK Version: 39
- Platforms(Android/iOS/web/all): Android
I have upgraded my expo to version 3.28.1.
In my app I have a reaction bar like instagram’s but I’m using images instead of icons, basically when the user clicks on the image the image appears else the image gets a tintColor: “#000”, this used to work like a charm before, but after the update it doesn’t work, now I get the black tinted image but when I click on the image, it no longer is visible. This is an example for one of the images:
<TouchableOpacity
onPress={() => setLike(!didLike)}
style={PostStyle.Reactions}
>
<Image
source={require("../images/like.png")}
style={didLike ? PostStyle.Liked : PostStyle.Like}
/>
</TouchableOpacity>
the following styles are:
Like: {
resizeMode: "contain",
width: "100%",
tintColor: "#000",
},
Liked: {
resizeMode: "contain",
width: "100%",
},
Reactions: {
resizeMode: "contain",
aspectRatio: 1 / 1,
flex: 1,
flexDirection: "row",
justifyContent: "center",
alignItems: "center",
width: "30%",
margin: 5,
},
any idea what’s wrong?